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/client/QXmppSendStanzaParams.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/client/QXmppSendStanzaParams.cpp') diff --git a/src/client/QXmppSendStanzaParams.cpp b/src/client/QXmppSendStanzaParams.cpp index ca628f14..3a3beaae 100644 --- a/src/client/QXmppSendStanzaParams.cpp +++ b/src/client/QXmppSendStanzaParams.cpp @@ -27,9 +27,13 @@ QXmppSendStanzaParams::QXmppSendStanzaParams() /// Copy-constructor QXmppSendStanzaParams::QXmppSendStanzaParams(const QXmppSendStanzaParams &other) = default; +/// Move-constructor +QXmppSendStanzaParams::QXmppSendStanzaParams(QXmppSendStanzaParams &&) = default; QXmppSendStanzaParams::~QXmppSendStanzaParams() = default; /// Assignment operator QXmppSendStanzaParams &QXmppSendStanzaParams::operator=(const QXmppSendStanzaParams &) = default; +/// Move-assignment operator +QXmppSendStanzaParams &QXmppSendStanzaParams::operator=(QXmppSendStanzaParams &&) = default; /// /// Returns the list of JIDs that the stanza should be encrypted for. -- cgit v1.2.3