From afbae9c2acf8d5c0846a87f03edfb9407672e9ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A5rten=20Nordheim?= Date: Mon, 25 Jul 2022 10:26:20 +0200 Subject: [PATCH] Use class scope to refer to static function The call to metaObject() in the ctor may generate a warning since it calls a virtual function during construction. Amends be09628e151f26f602024bae6a957ffb27ac872d Change-Id: I27472786b41624d582525c4260a54db61ee7ed16 Reviewed-by: Harald Sitter Reviewed-by: Aleix Pol Gonzalez --- src/gui/accessible/linux/dbusconnection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/accessible/linux/dbusconnection.cpp b/src/gui/accessible/linux/dbusconnection.cpp index a970c2758bb..9105768fcf7 100644 --- a/src/gui/accessible/linux/dbusconnection.cpp +++ b/src/gui/accessible/linux/dbusconnection.cpp @@ -40,7 +40,7 @@ DBusConnection::DBusConnection(QObject *parent) if (!addressEnv.isEmpty()) { // Only connect on next loop run, connections to our enabled signal are // only established after the ctor returns. - metaObject()->invokeMethod( + QMetaObject::invokeMethod( this, [this, addressEnv] { m_enabled = true;