mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:04:59 +00:00
Everywhere: Pass AK::StringView by value
This commit is contained in:
parent
ad5d217e76
commit
8b1108e485
392 changed files with 978 additions and 978 deletions
|
@ -119,7 +119,7 @@ public:
|
|||
And,
|
||||
Or,
|
||||
};
|
||||
static BooleanOperator op_from(const StringView& sv)
|
||||
static BooleanOperator op_from(StringView sv)
|
||||
{
|
||||
if (sv == "&")
|
||||
return BooleanOperator::And;
|
||||
|
@ -204,7 +204,7 @@ public:
|
|||
Greater,
|
||||
};
|
||||
|
||||
static ComparisonOperation op_from(const StringView& sv)
|
||||
static ComparisonOperation op_from(StringView sv)
|
||||
{
|
||||
if (sv == "<")
|
||||
return ComparisonOperation::Less;
|
||||
|
@ -274,7 +274,7 @@ public:
|
|||
Quotient,
|
||||
Remainder,
|
||||
};
|
||||
static ArithmeticOperation op_from(const StringView& sv)
|
||||
static ArithmeticOperation op_from(StringView sv)
|
||||
{
|
||||
if (sv == "+")
|
||||
return ArithmeticOperation::Sum;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue