From bbf6718c4fc55867be0db8946918ce03d3879f64 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Tue, 24 Mar 2026 12:17:37 +0000 Subject: hyprctl: fix invalid type cast gfd --- src/debug/HyprCtl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/debug') 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(VAL))->x, (*rc(VAL))->y, VAR.setByUser); else if (TYPE == typeid(Hyprlang::STRING)) - return std::format("str: {}\nset: {}", *rc(VAL), VAR.setByUser); + return std::format("str: {}\nset: {}", *rc(VAL), VAR.setByUser); else if (TYPE == typeid(Config::STRING)) return std::format("str: {}\nset: {}", **rc(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(VAL))->x, (*rc(VAL))->y, VAR.setByUser); else if (TYPE == typeid(Hyprlang::STRING)) - return std::format(R"({{"option": "{}", "str": "{}", "set": {} }})", curitem, escapeJSONStrings(*rc(VAL)), VAR.setByUser); + return std::format(R"({{"option": "{}", "str": "{}", "set": {} }})", curitem, escapeJSONStrings(*rc(VAL)), VAR.setByUser); else if (TYPE == typeid(Config::STRING)) return std::format(R"({{"option": "{}", "str": "{}", "set": {} }})", curitem, **rc(VAL), VAR.setByUser); else if (TYPE == typeid(void*)) -- cgit v1.2.3