diff options
-rw-r--r-- | src/core/api/qwebenginehistory.h | 2 | ||||
-rw-r--r-- | src/core/api/qwebenginehttprequest.h | 2 | ||||
-rw-r--r-- | src/core/api/qwebenginescript.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/core/api/qwebenginehistory.h b/src/core/api/qwebenginehistory.h index 6afb8d8c1..2e5dfcd9a 100644 --- a/src/core/api/qwebenginehistory.h +++ b/src/core/api/qwebenginehistory.h @@ -74,7 +74,7 @@ public: bool isValid() const; - void swap(QWebEngineHistoryItem &other) Q_DECL_NOTHROW { qSwap(d, other.d); } + void swap(QWebEngineHistoryItem &other) noexcept { d.swap(other.d); } private: QWebEngineHistoryItem(QWebEngineHistoryItemPrivate *priv); diff --git a/src/core/api/qwebenginehttprequest.h b/src/core/api/qwebenginehttprequest.h index b302217f2..65b2e8f98 100644 --- a/src/core/api/qwebenginehttprequest.h +++ b/src/core/api/qwebenginehttprequest.h @@ -73,7 +73,7 @@ public: QWebEngineHttpRequest &operator=(const QWebEngineHttpRequest &other); static QWebEngineHttpRequest postRequest(const QUrl &url, const QMap<QString, QString> &postData); - void swap(QWebEngineHttpRequest &other) Q_DECL_NOTHROW { qSwap(d, other.d); } + void swap(QWebEngineHttpRequest &other) noexcept { d.swap(other.d); } bool operator==(const QWebEngineHttpRequest &other) const; inline bool operator!=(const QWebEngineHttpRequest &other) const { return !operator==(other); } diff --git a/src/core/api/qwebenginescript.h b/src/core/api/qwebenginescript.h index a9b1bb869..4d2ecd2e5 100644 --- a/src/core/api/qwebenginescript.h +++ b/src/core/api/qwebenginescript.h @@ -107,7 +107,7 @@ public: bool operator==(const QWebEngineScript &other) const; inline bool operator!=(const QWebEngineScript &other) const { return !operator==(other); } - void swap(QWebEngineScript &other) { qSwap(d, other.d); } + void swap(QWebEngineScript &other) noexcept { d.swap(other.d); } private: friend class QWebEngineScriptCollectionPrivate; |