From af383decca4d1893c80d0eea2357b1bb8969a5db Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Thu, 8 May 2025 12:55:40 +0200 Subject: [PATCH] chore: Type fixes / Const correctness --- src/lib/gui/config/Screen.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/lib/gui/config/Screen.h b/src/lib/gui/config/Screen.h index 83af8f49d..438e22d7d 100644 --- a/src/lib/gui/config/Screen.h +++ b/src/lib/gui/config/Screen.h @@ -80,9 +80,9 @@ public: { return m_SwitchCornerSize; } - [[nodiscard]] bool fix(Fix f) const + [[nodiscard]] bool fix(const Fix f) const { - return m_Fixes[static_cast(f)]; + return m_Fixes[static_cast(f)]; } [[nodiscard]] const QList &fixes() const { @@ -121,7 +121,7 @@ protected: { return m_Aliases; } - void setModifier(Modifier m, int n) + void setModifier(const Modifier m, const int n) { m_Modifiers[static_cast(m)] = n; } @@ -133,7 +133,7 @@ protected: { m_Aliases.append(alias); } - void setSwitchCorner(SwitchCorner c, bool on) + void setSwitchCorner(const SwitchCorner c, const bool on) { m_SwitchCorners[static_cast(c)] = on; } @@ -141,11 +141,11 @@ protected: { return m_SwitchCorners; } - void setSwitchCornerSize(int val) + void setSwitchCornerSize(const int val) { m_SwitchCornerSize = val; } - void setFix(Fix f, bool on) + void setFix(const Fix f, const bool on) { m_Fixes[static_cast(f)] = on; } @@ -153,7 +153,7 @@ protected: { return m_Fixes; } - void setSwapped(bool on) + void setSwapped(const bool on) { m_Swapped = on; }