From 505cd6d62fb66eb84a97e0a065a7b6a45d8909c4 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Wed, 15 Feb 2023 17:53:34 +0200 Subject: [PATCH] Fix error: an attribute list cannot appear here. --- src/libs/vmisc/qt_dispatch/qt_dispatch.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libs/vmisc/qt_dispatch/qt_dispatch.h b/src/libs/vmisc/qt_dispatch/qt_dispatch.h index 592d0d935..ad3fa04fd 100644 --- a/src/libs/vmisc/qt_dispatch/qt_dispatch.h +++ b/src/libs/vmisc/qt_dispatch/qt_dispatch.h @@ -35,7 +35,7 @@ public slots: } }; -static inline Q_DECL_UNUSED void q_dispatch_async(QThread* thread, voidBlock block); +Q_DECL_UNUSED static inline void q_dispatch_async(QThread* thread, voidBlock block); static inline void q_dispatch_async(QThread* thread, voidBlock block) { qRegisterMetaType("voidBlock"); @@ -44,7 +44,7 @@ static inline void q_dispatch_async(QThread* thread, voidBlock block) QMetaObject::invokeMethod(worker, "DoWork", Qt::QueuedConnection, Q_ARG(voidBlock, block)); } -static inline Q_DECL_UNUSED void q_dispatch_async_main(voidBlock block); +Q_DECL_UNUSED static inline void q_dispatch_async_main(voidBlock block); static inline void q_dispatch_async_main(voidBlock block) { QThread *mainThread = QCoreApplication::instance()->thread(); @@ -90,7 +90,7 @@ private: QString m_category; }; -static inline Q_DECL_UNUSED void q_dispatch_async(QThread* thread, msgHandlerBlock block, QtMsgType type, +Q_DECL_UNUSED static inline void q_dispatch_async(QThread* thread, msgHandlerBlock block, QtMsgType type, const QMessageLogContext &context, const QString &msg); static inline void q_dispatch_async(QThread* thread, msgHandlerBlock block, QtMsgType type, const QMessageLogContext &context, const QString &msg) @@ -101,7 +101,7 @@ static inline void q_dispatch_async(QThread* thread, msgHandlerBlock block, QtMs QMetaObject::invokeMethod(worker, "DoWork", Qt::QueuedConnection, Q_ARG(msgHandlerBlock, block)); } -static inline Q_DECL_UNUSED void q_dispatch_async_main(msgHandlerBlock block, QtMsgType type, +Q_DECL_UNUSED static inline void q_dispatch_async_main(msgHandlerBlock block, QtMsgType type, const QMessageLogContext &context, const QString &msg); static inline void q_dispatch_async_main(msgHandlerBlock block, QtMsgType type, const QMessageLogContext &context, const QString &msg)