diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-03-30 21:01:54 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-03-30 13:54:12 -0700 |
commit | 79bf243ec0055f546efa2b4dee20424f291f968d (patch) | |
tree | 2590d350fd66a53e7faac222ff4c3807b586ae22 /subsurface-helper.cpp | |
parent | 7f2eaba5743e8efe9850075ebd911347dd9b3a85 (diff) | |
download | subsurface-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.cpp | 2 |
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"); |