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/QXmppPubSubEvent.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/base/QXmppPubSubEvent.h') diff --git a/src/base/QXmppPubSubEvent.h b/src/base/QXmppPubSubEvent.h index f1113a27..eca43fb6 100644 --- a/src/base/QXmppPubSubEvent.h +++ b/src/base/QXmppPubSubEvent.h @@ -33,9 +33,11 @@ public: QXmppPubSubEventBase(EventType = Items, const QString &node = {}); QXmppPubSubEventBase(const QXmppPubSubEventBase &other); + QXmppPubSubEventBase(QXmppPubSubEventBase &&); virtual ~QXmppPubSubEventBase(); QXmppPubSubEventBase &operator=(const QXmppPubSubEventBase &other); + QXmppPubSubEventBase &operator=(QXmppPubSubEventBase &&); EventType eventType() const; void setEventType(EventType); -- cgit v1.2.3