diff options
author | Alex Blasche <alexander.blasche@digia.com> | 2014-05-14 14:10:33 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-05-15 10:10:05 +0200 |
commit | 10cd7743aa8c30fc3a5f8485ba4c4aad6bb5365e (patch) | |
tree | 4498b82fc104cf4e675241412d147de61147ed55 /src/nfc/qqmlndefrecord.cpp | |
parent | de750dc7971b3dfda350b5602501b6215ef3da8d (diff) |
Utilize QStringLiteral where possible
The only exception are generated files and cases where
QLatin1String based overloads are used (e.g. during QString comparisons)
Change-Id: I6f36789fb8acb3b30c1dc1f8a920b118a979d74f
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Diffstat (limited to 'src/nfc/qqmlndefrecord.cpp')
-rw-r--r-- | src/nfc/qqmlndefrecord.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nfc/qqmlndefrecord.cpp b/src/nfc/qqmlndefrecord.cpp index c94578eb..3a8934c1 100644 --- a/src/nfc/qqmlndefrecord.cpp +++ b/src/nfc/qqmlndefrecord.cpp @@ -186,11 +186,11 @@ static QString urnForRecordType(QNdefRecord::TypeNameFormat typeNameFormat, cons { switch (typeNameFormat) { case QNdefRecord::NfcRtd: - return QLatin1String("urn:nfc:wkt:") + QString::fromLatin1(type); + return QStringLiteral("urn:nfc:wkt:") + QString::fromLatin1(type); case QNdefRecord::ExternalRtd: - return QLatin1String("urn:nfc:ext:") + QString::fromLatin1(type); + return QStringLiteral("urn:nfc:ext:") + QString::fromLatin1(type); case QNdefRecord::Mime: - return QLatin1String("urn:nfc:mime:") + QString::fromLatin1(type); + return QStringLiteral("urn:nfc:mime:") + QString::fromLatin1(type); default: return QString(); } |