From e9fa298d06bdeb267a7931f9b54cd82b3c1e3a1b Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Wed, 3 Apr 2019 23:28:26 +0200 Subject: 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 --- tests/testqPrefDivePlanner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/testqPrefDivePlanner.cpp') 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() -- cgit v1.2.3-70-g09d2