diff options
author | Andreas Buhr <andreas@andreasbuhr.de> | 2021-07-28 12:07:20 +0200 |
---|---|---|
committer | Andreas Buhr <andreas@andreasbuhr.de> | 2021-08-09 11:57:38 +0200 |
commit | b72dbed22a5a8ae30b515f2c9cf7a6dc2fab5e47 (patch) | |
tree | 7e9c6e5f7d937063fbba2e77a8583ad7dc6baa10 /src/webchannel | |
parent | 96686df007b0961f33dfd84840dd8aa6fdbde00d (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 the last usage of Q_MOVABLE_TYPE
by Q_RELOCATABLE_TYPE in qtwebchannel. As the two are synonymous, this
patch should have no impact on users.
Task-number: QTBUG-86829
Change-Id: Ife09cad141088ce988a948ecdc5df385fdffd80a
Reviewed-by: Arno Rehn <a.rehn@menlosystems.com>
Diffstat (limited to 'src/webchannel')
-rw-r--r-- | src/webchannel/qmetaobjectpublisher.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/webchannel/qmetaobjectpublisher.cpp b/src/webchannel/qmetaobjectpublisher.cpp index 53cf840..b6a9e11 100644 --- a/src/webchannel/qmetaobjectpublisher.cpp +++ b/src/webchannel/qmetaobjectpublisher.cpp @@ -179,7 +179,7 @@ QJsonObject createResponse(const QJsonValue &id, const QJsonValue &data) } -Q_DECLARE_TYPEINFO(OverloadResolutionCandidate, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(OverloadResolutionCandidate, Q_RELOCATABLE_TYPE); void QWebChannelPropertyChangeNotifier::notify( QPropertyObserver *self, QUntypedPropertyData *) |