aboutsummaryrefslogtreecommitdiff
path: root/src/base/QXmppDiscoveryIq.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/QXmppDiscoveryIq.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/QXmppDiscoveryIq.h')
-rw-r--r--src/base/QXmppDiscoveryIq.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/base/QXmppDiscoveryIq.h b/src/base/QXmppDiscoveryIq.h
index 0fc6eccf..805d22cf 100644
--- a/src/base/QXmppDiscoveryIq.h
+++ b/src/base/QXmppDiscoveryIq.h
@@ -22,9 +22,11 @@ public:
public:
Identity();
Identity(const Identity &other);
+ Identity(Identity &&);
~Identity();
Identity &operator=(const Identity &other);
+ Identity &operator=(Identity &&);
QString category() const;
void setCategory(const QString &category);
@@ -47,9 +49,11 @@ public:
public:
Item();
Item(const Item &);
+ Item(Item &&);
~Item();
Item &operator=(const Item &);
+ Item &operator=(Item &&);
QString jid() const;
void setJid(const QString &jid);
@@ -66,9 +70,11 @@ public:
QXmppDiscoveryIq();
QXmppDiscoveryIq(const QXmppDiscoveryIq &);
+ QXmppDiscoveryIq(QXmppDiscoveryIq &&);
~QXmppDiscoveryIq();
QXmppDiscoveryIq &operator=(const QXmppDiscoveryIq &);
+ QXmppDiscoveryIq &operator=(QXmppDiscoveryIq &&);
enum QueryType {
InfoQuery,