mirror of
https://github.com/transmission/transmission
synced 2024-12-22 07:42:37 +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;
|
break;
|
||||||
|
|
||||||
case StringIndex:
|
case StringIndex:
|
||||||
if (auto const val = *get_if<StringIndex>(); val == "true")
|
if (auto const val = *get_if<StringIndex>(); val == "true"sv)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else if (val == "false")
|
else if (val == "false"sv)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue