From 7d4b9079fae0eda65cb97be0235b056e0d486eaf Mon Sep 17 00:00:00 2001 From: Alex Blasche Date: Mon, 12 Aug 2013 16:26:36 +0200 Subject: Add copy constructor to QNdefNfcSmartPosterRecord to avoid compile error Change-Id: I133e7f09780d8da3bb88e9971a7f858b905176b4 Reviewed-by: Fabian Bumberger Reviewed-by: Alex Blasche --- src/nfc/qndefnfcsmartposterrecord.cpp | 8 ++++++++ src/nfc/qndefnfcsmartposterrecord.h | 1 + 2 files changed, 9 insertions(+) (limited to 'src/nfc') 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 @@ -90,6 +90,14 @@ QNdefNfcSmartPosterRecord::QNdefNfcSmartPosterRecord(const QNdefRecord &other) setPayload(other.payload()); } +/*! + 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. */ 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); -- cgit v1.2.3