summaryrefslogtreecommitdiffstats
path: root/src/nfc
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@digia.com>2013-08-12 16:26:36 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-08-13 08:46:08 +0200
commit7d4b9079fae0eda65cb97be0235b056e0d486eaf (patch)
tree5d6f75b6a862f723a18c7e88b772693373ad79b8 /src/nfc
parenta2f2ac64d1eee68e83c1e2ccf8146acec2ddbe42 (diff)
Add copy constructor to QNdefNfcSmartPosterRecord to avoid compile error
Change-Id: I133e7f09780d8da3bb88e9971a7f858b905176b4 Reviewed-by: Fabian Bumberger <fbumberger@rim.com> Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Diffstat (limited to 'src/nfc')
-rw-r--r--src/nfc/qndefnfcsmartposterrecord.cpp8
-rw-r--r--src/nfc/qndefnfcsmartposterrecord.h1
2 files changed, 9 insertions, 0 deletions
diff --git a/src/nfc/qndefnfcsmartposterrecord.cpp b/src/nfc/qndefnfcsmartposterrecord.cpp
index 6d8e6d40..e17844c4 100644
--- a/src/nfc/qndefnfcsmartposterrecord.cpp
+++ b/src/nfc/qndefnfcsmartposterrecord.cpp
@@ -91,6 +91,14 @@ QNdefNfcSmartPosterRecord::QNdefNfcSmartPosterRecord(const QNdefRecord &other)
}
/*!
+ Constructs a new smart poster that is a copy of \a other.
+*/
+QNdefNfcSmartPosterRecord::QNdefNfcSmartPosterRecord(const QNdefNfcSmartPosterRecord &other)
+ : QNdefRecord(other, QNdefRecord::NfcRtd, "Sp"), d(other.d)
+{
+}
+
+/*!
Destroys the smart poster.
*/
QNdefNfcSmartPosterRecord::~QNdefNfcSmartPosterRecord()
diff --git a/src/nfc/qndefnfcsmartposterrecord.h b/src/nfc/qndefnfcsmartposterrecord.h
index 5efb3f42..82f26e36 100644
--- a/src/nfc/qndefnfcsmartposterrecord.h
+++ b/src/nfc/qndefnfcsmartposterrecord.h
@@ -87,6 +87,7 @@ public:
QNdefNfcSmartPosterRecord();
QNdefNfcSmartPosterRecord(const QNdefRecord &other);
+ QNdefNfcSmartPosterRecord(const QNdefNfcSmartPosterRecord &other);
~QNdefNfcSmartPosterRecord();
void setPayload(const QByteArray &payload);