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 be09628e15

Change-Id: I27472786b41624d582525c4260a54db61ee7ed16
Reviewed-by: Harald Sitter <sitter@kde.org>
Reviewed-by: Aleix Pol Gonzalez <aleixpol@kde.org>
bb10
Mårten Nordheim 2022-07-25 10:26:20 +02:00
parent c142fd8f68
commit afbae9c2ac
1 changed files with 1 additions and 1 deletions

View File

@ -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;