diff options
author | Andreas Buhr <andreas@andreasbuhr.de> | 2021-07-28 12:01:30 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2021-08-12 17:56:40 +0000 |
commit | b5a5042f582bd3849d89a1284650df0f5c5834c9 (patch) | |
tree | c5b4f04c9c09277e8c0401a2eba94e487f5870a5 /src/core/api/qwebenginescript.h | |
parent | a3a330a9ae031bd19796d62f5e91bc25f5f97769 (diff) |
Replace discouraged Q_MOVABLE_TYPE by Q_RELOCATABLE_TYPE
Q_MOVABLE_TYPE was conceived before C++ had move semantics. Now, with
move semantics, its name is misleading. Q_RELOCATABLE_TYPE was
introduced as a synonym to Q_MOVABLE_TYPE. Usage of Q_MOVABLE_TYPE
is discouraged now. This patch replaces all usages of Q_MOVABLE_TYPE
by Q_RELOCATABLE_TYPE in qtwebengine. As the two are synonymous, this
patch should have no impact on users.
Pick-to: 6.2
Task-number: QTBUG-86829
Change-Id: I6cf26bb24c4d68cc3da85193cf6f8e63daeaa9d7
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/core/api/qwebenginescript.h')
-rw-r--r-- | src/core/api/qwebenginescript.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/api/qwebenginescript.h b/src/core/api/qwebenginescript.h index 03964932c..b3768c103 100644 --- a/src/core/api/qwebenginescript.h +++ b/src/core/api/qwebenginescript.h @@ -115,7 +115,7 @@ private: QSharedDataPointer<QtWebEngineCore::UserScript> d; }; -Q_DECLARE_TYPEINFO(QWebEngineScript, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(QWebEngineScript, Q_RELOCATABLE_TYPE); #ifndef QT_NO_DEBUG_STREAM Q_WEBENGINECORE_EXPORT QDebug operator<<(QDebug, const QWebEngineScript &); |