mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-25 17:15:44 +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:
@@ -26,9 +26,9 @@ GStatusBar::~GStatusBar()
|
||||
{
|
||||
}
|
||||
|
||||
void GStatusBar::set_text(String&& text)
|
||||
void GStatusBar::set_text(const String& text)
|
||||
{
|
||||
m_label->set_text(move(text));
|
||||
m_label->set_text(text);
|
||||
}
|
||||
|
||||
String GStatusBar::text() const
|
||||
|
||||
Reference in New Issue
Block a user