1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 22:18:12 +00:00

Everywhere: Pass AK::StringView by value

This commit is contained in:
Andreas Kling 2021-11-11 00:55:02 +01:00
parent ad5d217e76
commit 8b1108e485
392 changed files with 978 additions and 978 deletions

View file

@ -14,7 +14,7 @@ REGISTER_WIDGET(GUI, GroupBox)
namespace GUI {
GroupBox::GroupBox(const StringView& title)
GroupBox::GroupBox(StringView title)
: m_title(title)
{
REGISTER_STRING_PROPERTY("title", title, set_title);
@ -58,7 +58,7 @@ void GroupBox::fonts_change_event(FontsChangeEvent& event)
invalidate_layout();
}
void GroupBox::set_title(const StringView& title)
void GroupBox::set_title(StringView title)
{
if (m_title == title)
return;