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/targetemulator.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/targetemulator.cpp')
-rw-r--r-- | src/nfc/targetemulator.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/nfc/targetemulator.cpp b/src/nfc/targetemulator.cpp index e1d21e87..f6ccfccf 100644 --- a/src/nfc/targetemulator.cpp +++ b/src/nfc/targetemulator.cpp @@ -79,18 +79,18 @@ NfcTagType1::~NfcTagType1() void NfcTagType1::load(QSettings *settings) { - settings->beginGroup(QLatin1String("TagType1")); + settings->beginGroup(QStringLiteral("TagType1")); - hr0 = settings->value(QLatin1String("HR0"), 0x11).toUInt(); + hr0 = settings->value(QStringLiteral("HR0"), 0x11).toUInt(); if (!(hr0 & 0x10)) { settings->endGroup(); return; } - hr1 = settings->value(QLatin1String("HR1"), 0x00).toUInt(); + hr1 = settings->value(QStringLiteral("HR1"), 0x00).toUInt(); - memory = settings->value(QLatin1String("Data")).toByteArray(); + memory = settings->value(QStringLiteral("Data")).toByteArray(); //quint8 nmn = memory.at(8); @@ -302,9 +302,9 @@ NfcTagType2::~NfcTagType2() void NfcTagType2::load(QSettings *settings) { - settings->beginGroup(QLatin1String("TagType2")); + settings->beginGroup(QStringLiteral("TagType2")); - memory = settings->value(QLatin1String("Data")).toByteArray(); + memory = settings->value(QStringLiteral("Data")).toByteArray(); settings->endGroup(); } |