summaryrefslogtreecommitdiffstats
path: root/src/nfc/qndefnfctextrecord.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2012-05-03 17:08:10 +0200
committerQt by Nokia <qt-info@nokia.com>2012-05-30 20:06:38 +0200
commit938fbcbb74fd23a6135c3379116b0a23a70a7a33 (patch)
tree65e5d93f04765193c61067e2dae5ce85dd2e178a /src/nfc/qndefnfctextrecord.cpp
parent287285aafd0cb34ffc0e4fe150ee59a5e7dabc2d (diff)
Change uses of {to,from}Ascii to {to,from}Latin1
This operation should be a no-op anyway, since at this point in time, the fromAscii and toAscii functions simply call their fromLatin1 and toLatin1 counterparts. Task-number: QTBUG-21872 Change-Id: Ia2fed44c5db997b6fc13a243f5e312d35f8625ad Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
Diffstat (limited to 'src/nfc/qndefnfctextrecord.cpp')
-rw-r--r--src/nfc/qndefnfctextrecord.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nfc/qndefnfctextrecord.cpp b/src/nfc/qndefnfctextrecord.cpp
index 8da9d728..e5c9c4cb 100644
--- a/src/nfc/qndefnfctextrecord.cpp
+++ b/src/nfc/qndefnfctextrecord.cpp
@@ -79,7 +79,7 @@ QString QNdefNfcTextRecord::locale() const
quint8 codeLength = status & 0x3f;
- return QString::fromAscii(p.constData() + 1, codeLength);
+ return QString::fromLatin1(p.constData() + 1, codeLength);
}
/*!
@@ -96,7 +96,7 @@ void QNdefNfcTextRecord::setLocale(const QString &locale)
quint8 newStatus = (status & 0xd0) | locale.length();
p[0] = newStatus;
- p.replace(1, codeLength, locale.toAscii());
+ p.replace(1, codeLength, locale.toLatin1());
setPayload(p);
}