diff options
author | vaxerski <[email protected]> | 2023-01-24 22:46:16 +0000 |
---|---|---|
committer | vaxerski <[email protected]> | 2023-01-24 22:46:16 +0000 |
commit | da23ec847ebdc9beb66f2845ff2cd4e227ade3fa (patch) | |
tree | 5aecdb8183e4e1f5064f551cc626ec73dabcb6e0 | |
parent | 84954f376f14cc24fe55c373e21c794f7f1ef579 (diff) | |
download | Hyprland-da23ec847ebdc9beb66f2845ff2cd4e227ade3fa.tar.gz Hyprland-da23ec847ebdc9beb66f2845ff2cd4e227ade3fa.zip |
fix deprecated-copy warn
-rw-r--r-- | src/Window.hpp | 7 |
1 files changed, 5 insertions, 2 deletions
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 <deque> #include "config/ConfigDataValues.hpp" -enum eIdleInhibitMode { +enum eIdleInhibitMode +{ IDLEINHIBIT_NONE = 0, IDLEINHIBIT_ALWAYS, IDLEINHIBIT_FULLSCREEN, @@ -22,7 +23,9 @@ class CWindowOverridableVar { value = val; } - CWindowOverridableVar<T> operator=(CWindowOverridableVar<T> other) { + ~CWindowOverridableVar() = default; + + CWindowOverridableVar<T>& operator=(CWindowOverridableVar<T> other) { if (locked) return *this; |