diff options
author | Alex Blasche <alexander.blasche@qt.io> | 2017-10-17 07:50:11 +0200 |
---|---|---|
committer | Alex Blasche <alexander.blasche@qt.io> | 2017-10-17 07:50:11 +0200 |
commit | 013ad0570844975cd5c72a77d1cfefa30c3ea656 (patch) | |
tree | 9fb1d5afc8b29f97a60ca20d514269b9d1658ef2 /src/nfc/qndefnfcsmartposterrecord.cpp | |
parent | 18af3226765b62312acc8f801cc531fde0d9822b (diff) | |
parent | 80d85141aa496583c5cfa6dd0f62d5eb4a8ba660 (diff) |
Merge remote-tracking branch 'gerrit/5.9' into 5.10v5.10.0-beta3
Change-Id: I84bfe86751c27eabb4e75912ae3c0b4d3781faf1
Diffstat (limited to 'src/nfc/qndefnfcsmartposterrecord.cpp')
-rw-r--r-- | src/nfc/qndefnfcsmartposterrecord.cpp | 6 |
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); |