clang-tidy
clang-format
This commit is contained in:
2025-08-10 22:01:18 +02:00
parent 659a4ced44
commit 41e3fd1d8d
29 changed files with 235 additions and 302 deletions

View File

@@ -25,8 +25,13 @@ class PauseManager {
return static_cast<Source>(static_cast<uint8_t>(a) & static_cast<uint8_t>(b));
}
friend auto operator~(Source a) -> Source {
return static_cast<Source>(~static_cast<uint8_t>(a));
friend auto operator~(Source a) -> uint8_t {
return ~static_cast<uint8_t>(a);
}
friend auto operator&=(Source& a, uint8_t b) -> Source& {
a = static_cast<Source>(static_cast<uint8_t>(a) & b);
return a;
}
friend auto operator|=(Source& a, Source b) -> Source& {
@@ -63,10 +68,9 @@ class PauseManager {
if (enable) {
flags_ |= source;
} else {
flags_ &= ~source;
flags_ &= ~source; // Ahora funciona: Source &= uint8_t
}
// Solo notifica si cambió el estado general de pausa
if (was_paused != isPaused()) {
notifyPauseChanged();
}
@@ -125,7 +129,6 @@ class PauseManager {
result += ", ";
}
result += "FocusLoss";
first = false;
}
return result;