mirror of
https://github.com/QuasarApp/qca.git
synced 2025-04-26 19:44:32 +00:00
Add a clang-format off marker
Otherwise clang-format unoptimizes the code
This commit is contained in:
parent
f88abb0697
commit
db8ff052a9
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user