diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-09-11 22:08:25 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-09-11 22:08:25 +1000 |
| commit | b87d5bf20eeea7f6a865066f9a39f7fd084df8ee (patch) | |
| tree | d3e491231cefd793ccd9f44304e7395ea013d3ad /plugin/src/Caelestia/service.hpp | |
| parent | plugin/appdb: fix persistence (diff) | |
| download | caelestia-shell-b87d5bf20eeea7f6a865066f9a39f7fd084df8ee.tar.gz caelestia-shell-b87d5bf20eeea7f6a865066f9a39f7fd084df8ee.tar.bz2 caelestia-shell-b87d5bf20eeea7f6a865066f9a39f7fd084df8ee.zip | |
plugin: format + refactor
Diffstat (limited to 'plugin/src/Caelestia/service.hpp')
| -rw-r--r-- | plugin/src/Caelestia/service.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugin/src/Caelestia/service.hpp b/plugin/src/Caelestia/service.hpp index 6422b1f..787818b 100644 --- a/plugin/src/Caelestia/service.hpp +++ b/plugin/src/Caelestia/service.hpp @@ -2,6 +2,7 @@ #include <qmutex.h> #include <qobject.h> + namespace caelestia { class Service : public QObject { @@ -12,7 +13,7 @@ class Service : public QObject { public: explicit Service(QObject* parent = nullptr); - [[nodiscard]] int refCount(); + [[nodiscard]] int refCount() const; void ref(); void unref(); @@ -22,7 +23,7 @@ signals: private: int m_refCount; - QMutex m_mutex; + mutable QMutex m_mutex; virtual void start() = 0; virtual void stop() = 0; |