diff --git a/src/support/syncthread.cpp b/src/support/syncthread.cpp index 83aa369f..0f8d60eb 100644 --- a/src/support/syncthread.cpp +++ b/src/support/syncthread.cpp @@ -175,9 +175,12 @@ QVariant SyncThread::call(QObject *obj, const QByteArray &method, const QVariant QMutexLocker locker(&d->m); bool ret; Q_UNUSED(ret); // In really ret is used. I use this hack to suppress a compiler warning + // clang-format off + // Otherwise the QObject* gets turned into Object * that is not normalized and is slightly slower ret = QMetaObject::invokeMethod(d->agent, "call_do", Qt::QueuedConnection, Q_ARG(QObject*, obj), Q_ARG(QByteArray, method), Q_ARG(QVariantList, args)); + // clang-format on Q_ASSERT(ret); d->w.wait(&d->m); if(ok)