diff --git a/src/Window.hpp b/src/Window.hpp index d2ba09c0..8e24bfc9 100644 --- a/src/Window.hpp +++ b/src/Window.hpp @@ -8,7 +8,8 @@ #include #include "config/ConfigDataValues.hpp" -enum eIdleInhibitMode { +enum eIdleInhibitMode +{ IDLEINHIBIT_NONE = 0, IDLEINHIBIT_ALWAYS, IDLEINHIBIT_FULLSCREEN, @@ -22,7 +23,9 @@ class CWindowOverridableVar { value = val; } - CWindowOverridableVar operator=(CWindowOverridableVar other) { + ~CWindowOverridableVar() = default; + + CWindowOverridableVar& operator=(CWindowOverridableVar other) { if (locked) return *this;