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:
parent
27955a9c8a
commit
002c891216
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue