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/testqPrefDivePlanner.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/testqPrefDivePlanner.cpp')
-rw-r--r-- | tests/testqPrefDivePlanner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/testqPrefDivePlanner.cpp b/tests/testqPrefDivePlanner.cpp index 0a8812cec..5580acf80 100644 --- a/tests/testqPrefDivePlanner.cpp +++ b/tests/testqPrefDivePlanner.cpp @@ -14,7 +14,7 @@ void TestQPrefDivePlanner::initTestCase() QCoreApplication::setOrganizationName("Subsurface"); QCoreApplication::setOrganizationDomain("subsurface.hohndel.org"); QCoreApplication::setApplicationName("SubsurfaceTestQPrefDivePlanner"); - qPref::instance()->registerQML(NULL); + qPref::registerQML(NULL); } void TestQPrefDivePlanner::test_struct_get() |