1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-21 23:32:35 +00:00

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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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;
}