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/QXmppVCardIq.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/base/QXmppVCardIq.h') diff --git a/src/base/QXmppVCardIq.h b/src/base/QXmppVCardIq.h index dc027a76..ea918c41 100644 --- a/src/base/QXmppVCardIq.h +++ b/src/base/QXmppVCardIq.h @@ -34,9 +34,11 @@ public: QXmppVCardAddress(); QXmppVCardAddress(const QXmppVCardAddress &other); + QXmppVCardAddress(QXmppVCardAddress &&); ~QXmppVCardAddress(); QXmppVCardAddress &operator=(const QXmppVCardAddress &other); + QXmppVCardAddress &operator=(QXmppVCardAddress &&); QString country() const; void setCountry(const QString &country); -- cgit v1.2.3