diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2021-04-11 11:12:51 +0200 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2021-04-11 22:08:30 +0200 |
commit | 0d28805cc7790511b9414a900be57f3b2d8d63a8 (patch) | |
tree | 7024857bab292b347a48d77f1831bf37e5e23f28 /tests/auto/qml/qqmlmoduleplugin/moduleWithQmlSingleton/plugin.cpp | |
parent | 2181ef9d29c71273accab710a68907c5d42771db (diff) |
Mark overrides in tests to silence compiler warnings
Pick-to: 6.1
Change-Id: Ieed929dcd7b550a1dc365d34b6f20f2f0e2d057f
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'tests/auto/qml/qqmlmoduleplugin/moduleWithQmlSingleton/plugin.cpp')
-rw-r--r-- | tests/auto/qml/qqmlmoduleplugin/moduleWithQmlSingleton/plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qml/qqmlmoduleplugin/moduleWithQmlSingleton/plugin.cpp b/tests/auto/qml/qqmlmoduleplugin/moduleWithQmlSingleton/plugin.cpp index 6329927c34..acda0320b4 100644 --- a/tests/auto/qml/qqmlmoduleplugin/moduleWithQmlSingleton/plugin.cpp +++ b/tests/auto/qml/qqmlmoduleplugin/moduleWithQmlSingleton/plugin.cpp @@ -39,7 +39,7 @@ class MyPlugin : public QQmlExtensionPlugin public: MyPlugin() {} - void registerTypes(const char *uri) + void registerTypes(const char *uri) override { Q_ASSERT(QLatin1String(uri) == "org.qtproject.ModuleWithQmlSingleton"); qmlRegisterSingletonType(baseUrl().resolved(QUrl("ModuleWithQmlSingleton/MySingleton.qml")), uri, 1, 0, "MySingleton"); |