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 --- subsurface-helper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'subsurface-helper.cpp') diff --git a/subsurface-helper.cpp b/subsurface-helper.cpp index 67c8a6dcc..786c2ab03 100644 --- a/subsurface-helper.cpp +++ b/subsurface-helper.cpp @@ -158,7 +158,7 @@ static void register_meta_types() void register_qml_types(QQmlEngine *engine) { // register qPref* - qPref::instance()->registerQML(engine); + qPref::registerQML(engine); #ifndef SUBSURFACE_TEST_DATA int rc; -- cgit v1.2.3-70-g09d2