From d8f047dbc9e99300679fe81284c83d705ceb40bb Mon Sep 17 00:00:00 2001 From: zach Date: Thu, 4 Jun 2026 22:38:17 +0200 Subject: [PATCH] nodiscard --- Plugins/ZShell/Services/hyprsunsetmanager.hpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Plugins/ZShell/Services/hyprsunsetmanager.hpp b/Plugins/ZShell/Services/hyprsunsetmanager.hpp index 2f9b381..ebdbda9 100644 --- a/Plugins/ZShell/Services/hyprsunsetmanager.hpp +++ b/Plugins/ZShell/Services/hyprsunsetmanager.hpp @@ -22,12 +22,13 @@ Q_PROPERTY(bool manualToggle READ manualToggle WRITE setManualToggle NOTIFY manu public: explicit HyprsunsetManager(QObject* parent = nullptr); -int startTime() const; -int endTime() const; -bool enabled() const; -int temp() const; -bool activeAuto() const; -bool manualToggle() const; +[[nodiscard]] int startTime() const; +[[nodiscard]] int endTime() const; +[[nodiscard]] bool enabled() const; +[[nodiscard]] int temp() const; +[[nodiscard]] bool activeAuto() const; +[[nodiscard]] bool manualToggle() const; + Q_INVOKABLE void toggle(); Q_INVOKABLE void apply();