aboutsummaryrefslogtreecommitdiff
path: root/src/base/QXmppGeolocItem.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/QXmppGeolocItem.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/QXmppGeolocItem.h')
-rw-r--r--src/base/QXmppGeolocItem.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/base/QXmppGeolocItem.h b/src/base/QXmppGeolocItem.h
index 5b1148f2..05d42dba 100644
--- a/src/base/QXmppGeolocItem.h
+++ b/src/base/QXmppGeolocItem.h
@@ -18,9 +18,11 @@ class QXMPP_EXPORT QXmppGeolocItem : public QXmppPubSubItem
public:
QXmppGeolocItem();
QXmppGeolocItem(const QXmppGeolocItem &other);
+ QXmppGeolocItem(QXmppGeolocItem &&);
~QXmppGeolocItem();
QXmppGeolocItem &operator=(const QXmppGeolocItem &other);
+ QXmppGeolocItem &operator=(QXmppGeolocItem &&);
std::optional<double> accuracy() const;
void setAccuracy(std::optional<double> accuracy);