summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2020-08-24 16:27:03 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2020-08-25 06:33:33 +0200
commite24bbc4871e6a3711ffaa0e01397a40954465a3a (patch)
treef76429e2db4be6a791993f2b25af7e8cd450af74
parent33218bac1b81878944ab7f15a2ebac38dd0c317a (diff)
Fix warning after QMetaType changes
Change-Id: Id0a8ac5cc516732e6bc03c4a7d153486003d0881 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
-rw-r--r--src/plugins/platforms/cocoa/qcocoawindow.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/platforms/cocoa/qcocoawindow.mm b/src/plugins/platforms/cocoa/qcocoawindow.mm
index b07844819d..824603be98 100644
--- a/src/plugins/platforms/cocoa/qcocoawindow.mm
+++ b/src/plugins/platforms/cocoa/qcocoawindow.mm
@@ -80,7 +80,7 @@ static void qRegisterNotificationCallbacks()
NSNotificationCenter *center = [NSNotificationCenter defaultCenter];
- const QMetaObject *metaObject = QMetaType::metaObjectForType(qRegisterMetaType<QCocoaWindow*>());
+ const QMetaObject *metaObject = QMetaType(qRegisterMetaType<QCocoaWindow*>()).metaObject();
Q_ASSERT(metaObject);
for (int i = 0; i < metaObject->methodCount(); ++i) {