fix deprecated-copy warn

This commit is contained in:
vaxerski 2023-01-24 22:46:16 +00:00
parent 84954f376f
commit da23ec847e

View file

@ -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;