mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:07:45 +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
|
@ -32,7 +32,7 @@ NonnullRefPtr<Utf16StringImpl> Utf16StringImpl::create(Vector<u16, 1> string)
|
|||
return adopt_ref(*new Utf16StringImpl(move(string)));
|
||||
}
|
||||
|
||||
NonnullRefPtr<Utf16StringImpl> Utf16StringImpl::create(StringView const& string)
|
||||
NonnullRefPtr<Utf16StringImpl> Utf16StringImpl::create(StringView string)
|
||||
{
|
||||
return create(AK::utf8_to_utf16(string));
|
||||
}
|
||||
|
@ -67,7 +67,7 @@ Utf16String::Utf16String(Vector<u16, 1> string)
|
|||
{
|
||||
}
|
||||
|
||||
Utf16String::Utf16String(StringView const& string)
|
||||
Utf16String::Utf16String(StringView string)
|
||||
: m_string(Detail::Utf16StringImpl::create(move(string)))
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue