diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index 51b1e1d2..0390b9d9 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -1218,14 +1218,14 @@ std::vector CConfigManager::getMatchingRules(PHLWINDOW pWindow, boo std::optional internalMode, clientMode; if (ARGS[0] == "*") - internalMode = {}; + internalMode = std::nullopt; else if (isNumber(ARGS[0])) internalMode = (eFullscreenMode)std::stoi(ARGS[0]); else throw std::runtime_error("szFullscreenState internal mode not valid"); if (ARGS[1] == "*") - clientMode = {}; + clientMode = std::nullopt; else if (isNumber(ARGS[1])) clientMode = (eFullscreenMode)std::stoi(ARGS[1]); else