summaryrefslogtreecommitdiffstats
path: root/subsurface-helper.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-03-30 21:01:54 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-03-30 13:54:12 -0700
commit79bf243ec0055f546efa2b4dee20424f291f968d (patch)
tree2590d350fd66a53e7faac222ff4c3807b586ae22 /subsurface-helper.cpp
parent7f2eaba5743e8efe9850075ebd911347dd9b3a85 (diff)
downloadsubsurface-79bf243ec0055f546efa2b4dee20424f291f968d.tar.gz
cleanup: make members of ThemeInterface non-static
We have a singleton class ThemeInterface, which means that it is global and exists only once. It's members are static, i.e. also global. A message from the department of redundancy department? In any case, that makes no sense. Let's just make these members local to the class. I would even rip out the whole singleton thing, since the object is not accessed anywhere outside from QML. Let's keep it for now. 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 013cfb125..01637679a 100644
--- a/subsurface-helper.cpp
+++ b/subsurface-helper.cpp
@@ -199,7 +199,7 @@ void register_qml_types(QQmlEngine *engine)
// Register qml interface classes
QMLInterface::setup(ct);
- themeInterface::setup(ct);
+ themeInterface::instance()->setup(ct);
}
REGISTER_TYPE(QMLManager, "QMLManager");