mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:14:58 +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
|
@ -38,7 +38,7 @@ StringBuilder::StringBuilder(size_t initial_capacity)
|
|||
m_buffer.ensure_capacity(initial_capacity);
|
||||
}
|
||||
|
||||
void StringBuilder::append(StringView const& str)
|
||||
void StringBuilder::append(StringView str)
|
||||
{
|
||||
if (str.is_empty())
|
||||
return;
|
||||
|
@ -129,7 +129,7 @@ void StringBuilder::append_as_lowercase(char ch)
|
|||
append(ch);
|
||||
}
|
||||
|
||||
void StringBuilder::append_escaped_for_json(StringView const& string)
|
||||
void StringBuilder::append_escaped_for_json(StringView string)
|
||||
{
|
||||
for (auto ch : string) {
|
||||
switch (ch) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue