diff --git a/src/common/davcollection.h b/src/common/davcollection.h --- a/src/common/davcollection.h +++ b/src/common/davcollection.h @@ -66,7 +66,9 @@ DavCollection(const DavUrl &url, const QString &displayName, ContentTypes contentTypes); DavCollection(const DavCollection &other); + DavCollection(DavCollection &&); DavCollection &operator=(const DavCollection &other); + DavCollection &operator=(DavCollection &&); ~DavCollection(); diff --git a/src/common/davcollection.cpp b/src/common/davcollection.cpp --- a/src/common/davcollection.cpp +++ b/src/common/davcollection.cpp @@ -38,7 +38,9 @@ } DavCollection::DavCollection(const DavCollection &other) = default; +DavCollection::DavCollection(DavCollection &&) = default; DavCollection &DavCollection::operator=(const DavCollection &other) = default; +DavCollection &DavCollection::operator=(DavCollection &&) = default; DavCollection::~DavCollection() = default; void DavCollection::setCTag(const QString &ctag) diff --git a/src/common/daverror.h b/src/common/daverror.h --- a/src/common/daverror.h +++ b/src/common/daverror.h @@ -43,9 +43,11 @@ public: explicit Error(); explicit Error(ErrorNumber errNo, int responseCode, const QString &errorText, int jobErrorCode); - Error(const Error&); + Error(const Error &); + Error(Error &&); ~Error(); - Error& operator=(const Error&); + Error &operator=(const Error &); + Error &operator=(Error &&); Q_REQUIRED_RESULT ErrorNumber errorNumber() const; Q_REQUIRED_RESULT int responseCode() const; diff --git a/src/common/daverror.cpp b/src/common/daverror.cpp --- a/src/common/daverror.cpp +++ b/src/common/daverror.cpp @@ -37,9 +37,11 @@ d->mJobErrorCode = jobErrorCode; } -Error::Error(const Error&) = default; +Error::Error(const Error &) = default; +Error::Error(Error &&) = default; Error::~Error() = default; -Error& Error::operator=(const Error&) = default; +Error &Error::operator=(const Error &) = default; +Error &Error::operator=(Error &&) = default; ErrorNumber Error::errorNumber() const { diff --git a/src/common/davitem.h b/src/common/davitem.h --- a/src/common/davitem.h +++ b/src/common/davitem.h @@ -55,7 +55,9 @@ DavItem(const DavUrl &url, const QString &contentType, const QByteArray &data, const QString &etag); DavItem(const DavItem &other); + DavItem(DavItem &&); DavItem &operator=(const DavItem &other); + DavItem &operator=(DavItem &&); ~DavItem(); diff --git a/src/common/davitem.cpp b/src/common/davitem.cpp --- a/src/common/davitem.cpp +++ b/src/common/davitem.cpp @@ -34,7 +34,9 @@ } DavItem::DavItem(const DavItem &other) = default; +DavItem::DavItem(DavItem &&) = default; DavItem &DavItem::operator=(const DavItem &other) = default; +DavItem &DavItem::operator=(DavItem &&) = default; DavItem::~DavItem() = default; void DavItem::setUrl(const DavUrl &url) diff --git a/src/common/davurl.h b/src/common/davurl.h --- a/src/common/davurl.h +++ b/src/common/davurl.h @@ -32,9 +32,11 @@ * Creates an empty DAV url. */ DavUrl(); - DavUrl(const DavUrl&); + DavUrl(const DavUrl &); + DavUrl(DavUrl &&); ~DavUrl(); - DavUrl& operator=(const DavUrl&); + DavUrl &operator=(const DavUrl &); + DavUrl &operator=(DavUrl &&); /** * Creates a new DAV url. diff --git a/src/common/davurl.cpp b/src/common/davurl.cpp --- a/src/common/davurl.cpp +++ b/src/common/davurl.cpp @@ -31,9 +31,11 @@ d->mProtocol = protocol; } -DavUrl::DavUrl(const DavUrl&) = default; +DavUrl::DavUrl(const DavUrl &) = default; +DavUrl::DavUrl(DavUrl &&) = default; DavUrl::~DavUrl() = default; -DavUrl& DavUrl::operator=(const DavUrl&) = default; +DavUrl &DavUrl::operator=(const DavUrl &) = default; +DavUrl &DavUrl::operator=(DavUrl &&) = default; void DavUrl::setUrl(const QUrl &url) {