diff options
| author | Linus Jahn <lnj@kaidan.im> | 2022-06-17 18:26:01 +0200 |
|---|---|---|
| committer | Linus Jahn <lnj@kaidan.im> | 2022-06-18 12:45:19 +0200 |
| commit | 31ef165cbbf918ba0ddd00f86c6dee257a0b936b (patch) | |
| tree | e891a37cf70fbc60354d9a9cd69d4e9cb7d34a80 /src/base/QXmppPresence.h | |
| parent | 675f57b1d7facab15eff303f022c332a8220777e (diff) | |
| download | qxmpp-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/QXmppPresence.h')
| -rw-r--r-- | src/base/QXmppPresence.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/base/QXmppPresence.h b/src/base/QXmppPresence.h index 6aec68ed..f704ddc9 100644 --- a/src/base/QXmppPresence.h +++ b/src/base/QXmppPresence.h @@ -10,9 +10,11 @@ class QXmppPresencePrivate; +/// /// \brief The QXmppPresence class represents an XMPP presence stanza. /// /// \ingroup Stanzas +/// class QXMPP_EXPORT QXmppPresence : public QXmppStanza { public: @@ -52,9 +54,11 @@ public: QXmppPresence(QXmppPresence::Type type = QXmppPresence::Available); QXmppPresence(const QXmppPresence &other); + QXmppPresence(QXmppPresence &&); ~QXmppPresence() override; QXmppPresence &operator=(const QXmppPresence &other); + QXmppPresence &operator=(QXmppPresence &&); bool isXmppStanza() const override; |
