summaryrefslogtreecommitdiff
path: root/Servers/WindowServer/WSMenu.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-05-12 14:57:15 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-05-12 14:57:15 +0200
commitdddf45f56367b6e9e3a6740fe9bf70d81b4d6b1a (patch)
treed9f6b21aa34686f78056f419473e8e5ba22745b1 /Servers/WindowServer/WSMenu.h
parent23e6c45e877dd24637bba9407666d30a9e62f368 (diff)
downloadserenity-dddf45f56367b6e9e3a6740fe9bf70d81b4d6b1a.zip
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.
Diffstat (limited to 'Servers/WindowServer/WSMenu.h')
-rw-r--r--Servers/WindowServer/WSMenu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Servers/WindowServer/WSMenu.h b/Servers/WindowServer/WSMenu.h
index 0366bfb56e..43f66f838d 100644
--- a/Servers/WindowServer/WSMenu.h
+++ b/Servers/WindowServer/WSMenu.h
@@ -15,7 +15,7 @@ class Font;
class WSMenu final : public CObject {
public:
- WSMenu(WSClientConnection*, int menu_id, String&& name);
+ WSMenu(WSClientConnection*, int menu_id, const String& name);
virtual ~WSMenu() override;
WSClientConnection* client() { return m_client; }