summaryrefslogtreecommitdiffstats
path: root/src/nfc
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@theqtcompany.com>2015-05-11 11:12:14 +0200
committerAlex Blasche <alexander.blasche@theqtcompany.com>2015-05-11 11:12:28 +0200
commit3f3d1289cc2f30b8fbc0837bf8fb7c767492e4e2 (patch)
tree60359ca87bfe4597672b3679204b69cd8d4ea62e /src/nfc
parent7400567660d1abebb0568d557998a7eb59f1f427 (diff)
parente686b22a119c53f8ea4abc1a96f0fb15e37277fe (diff)
Merge remote-tracking branch 'gerrit/5.5' into neard
Diffstat (limited to 'src/nfc')
-rw-r--r--src/nfc/qndefnfcsmartposterrecord.cpp12
-rw-r--r--src/nfc/qndefnfcsmartposterrecord.h1
-rw-r--r--src/nfc/qnearfieldtarget.h2
3 files changed, 14 insertions, 1 deletions
diff --git a/src/nfc/qndefnfcsmartposterrecord.cpp b/src/nfc/qndefnfcsmartposterrecord.cpp
index 9bec5b7a..b71b8ac2 100644
--- a/src/nfc/qndefnfcsmartposterrecord.cpp
+++ b/src/nfc/qndefnfcsmartposterrecord.cpp
@@ -92,6 +92,18 @@ QNdefNfcSmartPosterRecord::QNdefNfcSmartPosterRecord(const QNdefNfcSmartPosterRe
}
/*!
+ Assigns the \a other smart poster record to this record and returns a reference to
+ this record.
+*/
+QNdefNfcSmartPosterRecord &QNdefNfcSmartPosterRecord::operator=(const QNdefNfcSmartPosterRecord &other)
+{
+ if (this != &other)
+ d = other.d;
+
+ return *this;
+}
+
+/*!
Destroys the smart poster.
*/
QNdefNfcSmartPosterRecord::~QNdefNfcSmartPosterRecord()
diff --git a/src/nfc/qndefnfcsmartposterrecord.h b/src/nfc/qndefnfcsmartposterrecord.h
index d02cdabb..3b813a28 100644
--- a/src/nfc/qndefnfcsmartposterrecord.h
+++ b/src/nfc/qndefnfcsmartposterrecord.h
@@ -80,6 +80,7 @@ public:
QNdefNfcSmartPosterRecord();
QNdefNfcSmartPosterRecord(const QNdefRecord &other);
QNdefNfcSmartPosterRecord(const QNdefNfcSmartPosterRecord &other);
+ QNdefNfcSmartPosterRecord &operator=(const QNdefNfcSmartPosterRecord &other);
~QNdefNfcSmartPosterRecord();
void setPayload(const QByteArray &payload);
diff --git a/src/nfc/qnearfieldtarget.h b/src/nfc/qnearfieldtarget.h
index 10c89a87..fef74946 100644
--- a/src/nfc/qnearfieldtarget.h
+++ b/src/nfc/qnearfieldtarget.h
@@ -63,7 +63,7 @@ public:
NfcTagType2,
NfcTagType3,
NfcTagType4,
- MifareTag,
+ MifareTag
};
enum AccessMethod {