summaryrefslogtreecommitdiffstats
path: root/src/nfc/qndefmessage.cpp
diff options
context:
space:
mode:
authorStuart Burge <sburge@blackberry.com>2013-06-19 11:03:25 -0400
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-07-02 08:59:42 +0200
commitdb2fc63155e8c821f5c6c751a33974cab9cb4ed3 (patch)
tree2b4265f74d2c285c21c46dc2c3d9418584bec986 /src/nfc/qndefmessage.cpp
parent1dce1dd4dda63d7b309710114f5d1eea69a52449 (diff)
Add support for NFC smart poster
Provide ability to construct a smart poster record from an NDEF record and get/set smart poster specific values. The record can be used as part of an NDEF message for transmission via NFC or writing to a tag Task-number: QTBUG-31738 Change-Id: I2f7ff287d7c732a3fb3ec7c5c6a7b8f50f13ab1d Reviewed-by: Alex <alexander.blasche@digia.com>
Diffstat (limited to 'src/nfc/qndefmessage.cpp')
-rw-r--r--src/nfc/qndefmessage.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nfc/qndefmessage.cpp b/src/nfc/qndefmessage.cpp
index daf1c4c8..ae4342c9 100644
--- a/src/nfc/qndefmessage.cpp
+++ b/src/nfc/qndefmessage.cpp
@@ -152,7 +152,7 @@ QNdefMessage QNdefMessage::fromByteArray(const QByteArray &message)
quint32 payloadLength;
if (sr)
- payloadLength = *(++i);
+ payloadLength = quint8(*(++i));
else {
payloadLength = quint8(*(++i)) << 24;
payloadLength |= quint8(*(++i)) << 16;