From 31ef165cbbf918ba0ddd00f86c6dee257a0b936b Mon Sep 17 00:00:00 2001 From: Linus Jahn Date: Fri, 17 Jun 2022 18:26:01 +0200 Subject: Add move constructors and move assignment operators everywhere This is so std::move() on implicitly-shared types actually moves the content and doesn't call the copy ctor/assignment operator. --- src/base/QXmppPushEnableIq.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/base/QXmppPushEnableIq.cpp') diff --git a/src/base/QXmppPushEnableIq.cpp b/src/base/QXmppPushEnableIq.cpp index b4f32263..dc1fab5a 100644 --- a/src/base/QXmppPushEnableIq.cpp +++ b/src/base/QXmppPushEnableIq.cpp @@ -27,11 +27,13 @@ QXmppPushEnableIq::QXmppPushEnableIq() /// Default copy-constructor QXmppPushEnableIq::QXmppPushEnableIq(const QXmppPushEnableIq &) = default; - +/// Default move-constructor +QXmppPushEnableIq::QXmppPushEnableIq(QXmppPushEnableIq &&) = default; QXmppPushEnableIq::~QXmppPushEnableIq() = default; - /// Default assignment operator QXmppPushEnableIq &QXmppPushEnableIq::operator=(const QXmppPushEnableIq &) = default; +/// Default move-assignment operator +QXmppPushEnableIq &QXmppPushEnableIq::operator=(QXmppPushEnableIq &&) = default; /// /// \brief Returns the jid of the app server -- cgit v1.2.3