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.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/base/QXmppPushEnableIq.h') diff --git a/src/base/QXmppPushEnableIq.h b/src/base/QXmppPushEnableIq.h index 49d48fbe..e76a2682 100644 --- a/src/base/QXmppPushEnableIq.h +++ b/src/base/QXmppPushEnableIq.h @@ -24,8 +24,10 @@ class QXMPP_EXPORT QXmppPushEnableIq : public QXmppIq public: QXmppPushEnableIq(); QXmppPushEnableIq(const QXmppPushEnableIq &); + QXmppPushEnableIq(QXmppPushEnableIq &&); ~QXmppPushEnableIq(); QXmppPushEnableIq &operator=(const QXmppPushEnableIq &); + QXmppPushEnableIq &operator=(QXmppPushEnableIq &&); /// /// \brief The Mode enum describes whether the IQ should enable or disable -- cgit v1.2.3