diff options
author | Lars Schmertmann <[email protected]> | 2020-06-27 12:57:31 +0200 |
---|---|---|
committer | Lars Schmertmann <[email protected]> | 2020-06-28 10:25:41 +0200 |
commit | 3bf839f3b97c986b877a0451fa3a94943ea19831 (patch) | |
tree | 03433c82d9e2cfdee84ecf84bb872464956f1f6c | |
parent | a2f9eaf552b58a258beb25d29691fff97276e198 (diff) |
Add ; to Q_UNUSED
This is required to remove the ; from the macro with Qt 6.
Task-number: QTBUG-82978
Change-Id: I56268bc09fe861effc514acb4033bf8873873ab0
Reviewed-by: Volker Hilsheimer <[email protected]>
-rw-r--r-- | src/dialogs/plugin.cpp | 8 | ||||
-rw-r--r-- | tests/auto/testplugin/testcppmodels.h | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/dialogs/plugin.cpp b/src/dialogs/plugin.cpp index 9470c2080..2f34c87fe 100644 --- a/src/dialogs/plugin.cpp +++ b/src/dialogs/plugin.cpp @@ -177,8 +177,8 @@ protected: if (!registerWidgetImplementation<WrapperType>( widgetsDir, qmlDir, qmlName, uri, hasTopLevelWindows, versionMajor, versionMinor)) #else - Q_UNUSED(widgetsDir) - Q_UNUSED(hasTopLevelWindows) + Q_UNUSED(widgetsDir); + Q_UNUSED(hasTopLevelWindows); #endif registerQmlImplementation<WrapperType>(qmlDir, qmlName, uri, versionMajor, versionMinor); } @@ -187,7 +187,7 @@ protected: bool registerWidgetImplementation(const QDir &widgetsDir, const QDir &qmlDir, const char *qmlName, const char *uri, bool hasTopLevelWindows, int versionMajor, int versionMinor) { - Q_UNUSED(qmlDir) + Q_UNUSED(qmlDir); bool mobileTouchPlatform = false; #if defined(Q_OS_IOS) mobileTouchPlatform = true; @@ -217,7 +217,7 @@ protected: template <class WrapperType> void registerQmlImplementation(const QDir &qmlDir, const char *qmlName, const char *uri , int versionMajor, int versionMinor) { - Q_UNUSED(qmlDir) + Q_UNUSED(qmlDir); qCDebug(lcRegistration) << "Register QML version for" << qmlName << "with uri:" << uri; QByteArray abstractTypeName = QByteArray("Abstract") + qmlName; diff --git a/tests/auto/testplugin/testcppmodels.h b/tests/auto/testplugin/testcppmodels.h index 03b598c47..44de1ca30 100644 --- a/tests/auto/testplugin/testcppmodels.h +++ b/tests/auto/testplugin/testcppmodels.h @@ -114,13 +114,13 @@ public: virtual bool canFetchMore(const QModelIndex &parent) const { - Q_UNUSED(parent) + Q_UNUSED(parent); return true; } virtual void fetchMore(const QModelIndex & parent) { - Q_UNUSED(parent) + Q_UNUSED(parent); addMoreData(); } |