diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-04-03 23:28:26 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-04-04 09:29:45 -0700 |
commit | e9fa298d06bdeb267a7931f9b54cd82b3c1e3a1b (patch) | |
tree | 76da76d01c0c1fc0740f7c5b415cdc6f3b9253ff /tests/testqml.cpp | |
parent | 2ead52b1398aef218c18d056c5a4da6b1d686ca5 (diff) | |
download | subsurface-e9fa298d06bdeb267a7931f9b54cd82b3c1e3a1b.tar.gz |
Cleanup: make qPref::registerQML() static
This member function does not access any other member of the object.
Make it static.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'tests/testqml.cpp')
-rw-r--r-- | tests/testqml.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/testqml.cpp b/tests/testqml.cpp index fcea8dfb1..2c354a536 100644 --- a/tests/testqml.cpp +++ b/tests/testqml.cpp @@ -15,7 +15,7 @@ int main(int argc, char **argv) QMLTestSetup setup; // register C++ types and classes (but not objects) - qPref::instance()->registerQML(NULL); + qPref::registerQML(NULL); return quick_test_main_with_setup(argc, argv, "TestQML", nullptr, &setup); #endif //QT_VERSION @@ -24,6 +24,6 @@ int main(int argc, char **argv) void QMLTestSetup::qmlEngineAvailable(QQmlEngine *engine) { // register C++ objects (but not types and classes) - qPref::instance()->registerQML(engine); + qPref::registerQML(engine); }; |