mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 18:10:56 +09:00
Everywhere: Pass AK::StringView by value
This commit is contained in:
parent
ad5d217e76
commit
8b1108e485
Notes:
sideshowbarker
2024-07-18 01:17:49 +09:00
Author: https://github.com/awesomekling
Commit: 8b1108e485
392 changed files with 978 additions and 978 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue