summaryrefslogtreecommitdiffstats
path: root/src/nfc/qndefnfcsmartposterrecord.cpp
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@qt.io>2017-10-17 08:56:40 +0200
committerAlex Blasche <alexander.blasche@qt.io>2017-10-17 08:56:47 +0200
commit125cdccc346903d6e70ed26289cdaed85e26ec3f (patch)
tree7df8ca41816c24ccfa6e0c6add4612689a933bdd /src/nfc/qndefnfcsmartposterrecord.cpp
parent844382001f8deaa7fcc9faac779b24188f35329b (diff)
parent013ad0570844975cd5c72a77d1cfefa30c3ea656 (diff)
Merge remote-tracking branch 'gerrit/5.10' into dev
Diffstat (limited to 'src/nfc/qndefnfcsmartposterrecord.cpp')
-rw-r--r--src/nfc/qndefnfcsmartposterrecord.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/nfc/qndefnfcsmartposterrecord.cpp b/src/nfc/qndefnfcsmartposterrecord.cpp
index 5f2de2cc..73f2cd21 100644
--- a/src/nfc/qndefnfcsmartposterrecord.cpp
+++ b/src/nfc/qndefnfcsmartposterrecord.cpp
@@ -141,12 +141,10 @@ void QNdefNfcSmartPosterRecord::setPayload(const QByteArray &payload)
if (!payload.isEmpty()) {
// Create new structure
- QNdefMessage message = QNdefMessage::fromByteArray(payload);
+ const QNdefMessage message = QNdefMessage::fromByteArray(payload);
// Iterate through all the records contained in the payload's message.
- for (QList<QNdefRecord>::const_iterator iter = message.begin(); iter != message.end(); iter++) {
- QNdefRecord record = *iter;
-
+ for (const QNdefRecord& record : message) {
// Title
if (record.isRecordType<QNdefNfcTextRecord>()) {
addTitleInternal(record);