mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 14:57:34 +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
|
@ -407,9 +407,9 @@ private:
|
|||
|
||||
class WSAPISetWallpaperRequest final : public WSAPIClientRequest {
|
||||
public:
|
||||
explicit WSAPISetWallpaperRequest(int client_id, String&& wallpaper)
|
||||
explicit WSAPISetWallpaperRequest(int client_id, const String& wallpaper)
|
||||
: WSAPIClientRequest(WSEvent::APISetWallpaperRequest, client_id)
|
||||
, m_wallpaper(move(wallpaper))
|
||||
, m_wallpaper(wallpaper)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -429,10 +429,10 @@ public:
|
|||
|
||||
class WSAPISetWindowTitleRequest final : public WSAPIClientRequest {
|
||||
public:
|
||||
explicit WSAPISetWindowTitleRequest(int client_id, int window_id, String&& title)
|
||||
explicit WSAPISetWindowTitleRequest(int client_id, int window_id, const String& title)
|
||||
: WSAPIClientRequest(WSEvent::APISetWindowTitleRequest, client_id)
|
||||
, m_window_id(window_id)
|
||||
, m_title(move(title))
|
||||
, m_title(title)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue