aboutsummaryrefslogtreecommitdiff
path: root/src/base/QXmppRegisterIq.h
diff options
context:
space:
mode:
authorLinus Jahn <lnj@kaidan.im>2022-06-17 18:26:01 +0200
committerLinus Jahn <lnj@kaidan.im>2022-06-18 12:45:19 +0200
commit31ef165cbbf918ba0ddd00f86c6dee257a0b936b (patch)
treee891a37cf70fbc60354d9a9cd69d4e9cb7d34a80 /src/base/QXmppRegisterIq.h
parent675f57b1d7facab15eff303f022c332a8220777e (diff)
downloadqxmpp-31ef165cbbf918ba0ddd00f86c6dee257a0b936b.tar.gz
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.
Diffstat (limited to 'src/base/QXmppRegisterIq.h')
-rw-r--r--src/base/QXmppRegisterIq.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/base/QXmppRegisterIq.h b/src/base/QXmppRegisterIq.h
index 063862cf..79937a0f 100644
--- a/src/base/QXmppRegisterIq.h
+++ b/src/base/QXmppRegisterIq.h
@@ -24,9 +24,11 @@ class QXMPP_EXPORT QXmppRegisterIq : public QXmppIq
public:
QXmppRegisterIq();
QXmppRegisterIq(const QXmppRegisterIq &other);
+ QXmppRegisterIq(QXmppRegisterIq &&);
~QXmppRegisterIq();
QXmppRegisterIq &operator=(const QXmppRegisterIq &other);
+ QXmppRegisterIq &operator=(QXmppRegisterIq &&);
static QXmppRegisterIq createChangePasswordRequest(const QString &username, const QString &newPassword, const QString &to = {});
static QXmppRegisterIq createUnregistrationRequest(const QString &to = {});