summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2019-06-18 12:26:17 +0200
committerMarc Mutz <marc.mutz@kdab.com>2019-07-28 09:25:05 +0000
commitb719c932b507de5d88a42d698e72c22330905ca9 (patch)
tree8a8a278e1f4fd55bd0584540358c8bf40f14e73d
parentf2f345e3a7b99693f1816492ac078ed3b0584a4a (diff)
QRemoteObjectPendingReply: fix GCC -Wdeprecated-copyv5.9.95.9
Just remove the user-provided copy comstructor; the compiler-generated one is fine. Also = default the default ctor and remove the dtor. Change-Id: Ic95719ed1987a6bf57cd9d77685ef9b2bd2d945b Reviewed-by: Brett Stottlemyer <bstottle@ford.com> (cherry picked from commit c4e0610e2dc3cdfdce95d08003a3d57baabdaf59)
-rw-r--r--src/remoteobjects/qremoteobjectpendingcall.h13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/remoteobjects/qremoteobjectpendingcall.h b/src/remoteobjects/qremoteobjectpendingcall.h
index 06c5a67..7fe3111 100644
--- a/src/remoteobjects/qremoteobjectpendingcall.h
+++ b/src/remoteobjects/qremoteobjectpendingcall.h
@@ -112,18 +112,11 @@ class QRemoteObjectPendingReply : public QRemoteObjectPendingCall
public:
typedef T Type;
- inline QRemoteObjectPendingReply()
+ QRemoteObjectPendingReply() = default;
+ explicit QRemoteObjectPendingReply(const QRemoteObjectPendingCall &call)
+ : QRemoteObjectPendingCall(call)
{
}
- inline QRemoteObjectPendingReply(const QRemoteObjectPendingReply &other)
- : QRemoteObjectPendingCall(other)
- {
- }
- explicit inline QRemoteObjectPendingReply(const QRemoteObjectPendingCall &call)
- {
- *this = call;
- }
- inline ~QRemoteObjectPendingReply() {}
QRemoteObjectPendingReply &operator=(const QRemoteObjectPendingCall &other)
{