summaryrefslogtreecommitdiffstats
path: root/subsurface-helper.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-04-03 23:28:26 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-04-04 09:29:45 -0700
commite9fa298d06bdeb267a7931f9b54cd82b3c1e3a1b (patch)
tree76da76d01c0c1fc0740f7c5b415cdc6f3b9253ff /subsurface-helper.cpp
parent2ead52b1398aef218c18d056c5a4da6b1d686ca5 (diff)
downloadsubsurface-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 'subsurface-helper.cpp')
-rw-r--r--subsurface-helper.cpp2
1 files changed, 1 insertions, 1 deletions
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;