mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
Everywhere: Pass AK::StringView by value
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user