mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:08:11 +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:
parent
23e6c45e87
commit
dddf45f563
11 changed files with 18 additions and 18 deletions
|
@ -50,11 +50,11 @@ WSWindow::~WSWindow()
|
|||
WSWindowManager::the().remove_window(*this);
|
||||
}
|
||||
|
||||
void WSWindow::set_title(String&& title)
|
||||
void WSWindow::set_title(const String& title)
|
||||
{
|
||||
if (m_title == title)
|
||||
return;
|
||||
m_title = move(title);
|
||||
m_title = title;
|
||||
WSWindowManager::the().notify_title_changed(*this);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue