diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2019-06-18 12:26:17 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2019-07-24 05:37:12 +0000 |
commit | 2bcda9d9f45858ac196d9972162c870ac0a6f217 (patch) | |
tree | cfb06c25d452f0ade6e69dcace1603fa21d9f6da | |
parent | 68f6423ac6e0d49bb02ae36bf29765688f271d18 (diff) |
QRemoteObjectPendingReply: fix GCC -Wdeprecated-copy
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.h | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/src/remoteobjects/qremoteobjectpendingcall.h b/src/remoteobjects/qremoteobjectpendingcall.h index 322b031..e895842 100644 --- a/src/remoteobjects/qremoteobjectpendingcall.h +++ b/src/remoteobjects/qremoteobjectpendingcall.h @@ -111,18 +111,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) { |