mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 03:09:08 +00:00
Change String&& arguments to const String& in a couple of places.
String&& is more nuisance than anything, and the codegen improvement is basically negligible since the underlying type is already retainable.
This commit is contained in:
@@ -35,11 +35,11 @@ GCheckBox::~GCheckBox()
|
||||
{
|
||||
}
|
||||
|
||||
void GCheckBox::set_caption(String&& caption)
|
||||
void GCheckBox::set_caption(const String& caption)
|
||||
{
|
||||
if (caption == m_caption)
|
||||
return;
|
||||
m_caption = move(caption);
|
||||
m_caption = caption;
|
||||
update();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user