From da23ec847ebdc9beb66f2845ff2cd4e227ade3fa Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Tue, 24 Jan 2023 22:46:16 +0000 Subject: [PATCH] fix deprecated-copy warn --- src/Window.hpp | 7 +++++-- 1 file 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 #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;