diff options
| author | Vaxry <vaxry@vaxry.net> | 2026-03-24 12:17:37 +0000 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2026-03-24 12:18:05 +0000 |
| commit | bbf6718c4fc55867be0db8946918ce03d3879f64 (patch) | |
| tree | 021bdeab5cf8119af027f3bcf27e69f65c1e479c /src/debug/HyprCtl.cpp | |
| parent | 63c56bad6fcc55f99d1437da7cd1b0b68fd9cc88 (diff) | |
hyprctl: fix invalid type cast
gfd
Diffstat (limited to 'src/debug/HyprCtl.cpp')
| -rw-r--r-- | src/debug/HyprCtl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/debug/HyprCtl.cpp b/src/debug/HyprCtl.cpp index 9a09016f..df147ee9 100644 --- a/src/debug/HyprCtl.cpp +++ b/src/debug/HyprCtl.cpp @@ -1767,7 +1767,7 @@ static std::string dispatchGetOption(eHyprCtlOutputFormat format, std::string re else if (TYPE == typeid(Config::VEC2)) return std::format("vec2: [{}, {}]\nset: {}", (*rc<Config::VEC2* const*>(VAL))->x, (*rc<Config::VEC2* const*>(VAL))->y, VAR.setByUser); else if (TYPE == typeid(Hyprlang::STRING)) - return std::format("str: {}\nset: {}", *rc<Config::STRING const*>(VAL), VAR.setByUser); + return std::format("str: {}\nset: {}", *rc<Hyprlang::STRING const*>(VAL), VAR.setByUser); else if (TYPE == typeid(Config::STRING)) return std::format("str: {}\nset: {}", **rc<Config::STRING* const*>(VAL), VAR.setByUser); else if (TYPE == typeid(void*)) @@ -1781,7 +1781,7 @@ static std::string dispatchGetOption(eHyprCtlOutputFormat format, std::string re return std::format(R"({{"option": "{}", "vec2": [{},{}], "set": {} }})", curitem, (*rc<Config::VEC2* const*>(VAL))->x, (*rc<Config::VEC2* const*>(VAL))->y, VAR.setByUser); else if (TYPE == typeid(Hyprlang::STRING)) - return std::format(R"({{"option": "{}", "str": "{}", "set": {} }})", curitem, escapeJSONStrings(*rc<Config::STRING const*>(VAL)), VAR.setByUser); + return std::format(R"({{"option": "{}", "str": "{}", "set": {} }})", curitem, escapeJSONStrings(*rc<Hyprlang::STRING const*>(VAL)), VAR.setByUser); else if (TYPE == typeid(Config::STRING)) return std::format(R"({{"option": "{}", "str": "{}", "set": {} }})", curitem, **rc<Config::STRING* const*>(VAL), VAR.setByUser); else if (TYPE == typeid(void*)) |
