diff options
Diffstat (limited to 'src/nfc/qndefnfctextrecord.cpp')
-rw-r--r-- | src/nfc/qndefnfctextrecord.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nfc/qndefnfctextrecord.cpp b/src/nfc/qndefnfctextrecord.cpp index 9c84eab3..a8d9b091 100644 --- a/src/nfc/qndefnfctextrecord.cpp +++ b/src/nfc/qndefnfctextrecord.cpp @@ -68,7 +68,7 @@ void QNdefNfcTextRecord::setLocale(const QString &locale) quint8 codeLength = status & 0x3f; - quint8 newStatus = (status & 0xd0) | locale.length(); + quint8 newStatus = (status & 0xd0) | locale.size(); p[0] = newStatus; p.replace(1, codeLength, locale.toLatin1()); @@ -94,7 +94,7 @@ QString QNdefNfcTextRecord::text() const utf16 ? QStringDecoder::Encoding::Utf16BE : QStringDecoder::Encoding::Utf8, QStringDecoder::Flag::Stateless); - return toUnicode(QByteArrayView(p.constData() + 1 + codeLength, p.length() - 1 - codeLength)); + return toUnicode(QByteArrayView(p.constData() + 1 + codeLength, p.size() - 1 - codeLength)); } /*! |