summaryrefslogtreecommitdiffstats
path: root/src/nfc/qndefnfcsmartposterrecord.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>2015-04-21 16:32:39 +0200
committerFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>2015-04-21 17:54:25 +0000
commit2d73a4dce69dcbd8f18c65ebc335851f092fb214 (patch)
treef7c93c0ce7df12710dac4ef3f10b3709d5db0ebe /src/nfc/qndefnfcsmartposterrecord.cpp
parentb08fc0c605aa4e2f77d716f2e039af29dde9e243 (diff)
Add assignment operator to QNdefNfcSmartPosterRecord.
Required to pass the headersclean test. Change-Id: I0b274ee90c4172dde99dc2f8f60525466fb8d35f Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/nfc/qndefnfcsmartposterrecord.cpp')
-rw-r--r--src/nfc/qndefnfcsmartposterrecord.cpp12
1 files changed, 12 insertions, 0 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()