mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 08:08:43 +00:00
Everywhere: Use _{short_,}string to create Strings from literals
This commit is contained in:
parent
85414d9338
commit
09d40bfbb2
Notes:
sideshowbarker
2024-07-16 23:45:42 +09:00
Author: https://github.com/linusg
Commit: 09d40bfbb2
Pull-request: https://github.com/SerenityOS/serenity/pull/17619
Reviewed-by: https://github.com/AtkinsSJ
Reviewed-by: https://github.com/MacDue
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/trflynn89
92 changed files with 334 additions and 310 deletions
|
@ -1591,7 +1591,7 @@ public:
|
|||
}
|
||||
virtual ~InheritStyleValue() override = default;
|
||||
|
||||
ErrorOr<String> to_string() const override { return String::from_utf8("inherit"sv); }
|
||||
ErrorOr<String> to_string() const override { return "inherit"_string; }
|
||||
|
||||
bool properties_equal(InheritStyleValue const&) const { return true; }
|
||||
|
||||
|
@ -1611,7 +1611,7 @@ public:
|
|||
}
|
||||
virtual ~InitialStyleValue() override = default;
|
||||
|
||||
ErrorOr<String> to_string() const override { return String::from_utf8("initial"sv); }
|
||||
ErrorOr<String> to_string() const override { return "initial"_string; }
|
||||
|
||||
bool properties_equal(InitialStyleValue const&) const { return true; }
|
||||
|
||||
|
@ -2029,7 +2029,7 @@ public:
|
|||
}
|
||||
virtual ~UnsetStyleValue() override = default;
|
||||
|
||||
ErrorOr<String> to_string() const override { return String::from_utf8("unset"sv); }
|
||||
ErrorOr<String> to_string() const override { return "unset"_string; }
|
||||
|
||||
bool properties_equal(UnsetStyleValue const&) const { return true; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue