From b87d5bf20eeea7f6a865066f9a39f7fd084df8ee Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Thu, 11 Sep 2025 22:08:25 +1000 Subject: plugin: format + refactor --- plugin/src/Caelestia/service.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'plugin/src/Caelestia/service.hpp') 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 #include + 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; -- cgit v1.2.3-freya