refactor: use string_view literals instead of C string literals (#7266)

This commit is contained in:
Yat Ho
2024-11-27 09:52:05 +08:00
committed by GitHub
parent 27955a9c8a
commit 002c891216

View File

@@ -134,11 +134,11 @@ template<>
break;
case StringIndex:
if (auto const val = *get_if<StringIndex>(); val == "true")
if (auto const val = *get_if<StringIndex>(); val == "true"sv)
{
return true;
}
else if (val == "false")
else if (val == "false"sv)
{
return false;
}