diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2020-05-02 16:54:06 -0700 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-05-20 14:10:36 +0200 |
commit | b9c33b13a0cda7c23b4cb129125cef09db5e0c82 (patch) | |
tree | 916aabf41b6eb9fc1a7c1155a0109aadf493f55f | |
parent | e18cfb5a129afb3e5e2f429436277ae4dc565e6e (diff) |
Fix warning that the QQmlListProperty constructor is deprecated
Use the one that isn't deprecated.
qwltexturesharingextension_p.h:145:78: warning: 'QQmlListProperty' is deprecated: Use constructor taking QList pointer,
and gain improved performance [-Wdeprecated-declarations]
Change-Id: I99ab0f318b1c43b89888fffd160b5b4521f09ca9
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
(cherry picked from commit bbf7fb0cf9f6553d17399d91560bdc559799c35b)
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
-rw-r--r-- | src/compositor/global/qwaylandquickextension.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compositor/global/qwaylandquickextension.h b/src/compositor/global/qwaylandquickextension.h index 7c4a8f811..5b01f16fa 100644 --- a/src/compositor/global/qwaylandquickextension.h +++ b/src/compositor/global/qwaylandquickextension.h @@ -47,7 +47,7 @@ QT_BEGIN_NAMESPACE public: \ QQmlListProperty<QObject> data() \ { \ - return QQmlListProperty<QObject>(this, m_objects); \ + return QQmlListProperty<QObject>(this, &m_objects); \ } \ void classBegin() override {} \ void componentComplete() override { if (!isInitialized()) initialize(); } \ @@ -66,7 +66,7 @@ QT_BEGIN_NAMESPACE public: \ QQmlListProperty<QObject> data() \ { \ - return QQmlListProperty<QObject>(this, m_objects); \ + return QQmlListProperty<QObject>(this, &m_objects); \ } \ QQmlListProperty<QWaylandCompositorExtension> extensions() \ { \ |