summaryrefslogtreecommitdiff
path: root/WindowServer/WSMenu.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-02-12 00:52:19 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-02-12 00:52:19 +0100
commit133706d697b7e7441a7f4968b5a52dfc0323d34b (patch)
treee2af7b65b49ce66a9e003278a0508913f644c578 /WindowServer/WSMenu.cpp
parentbb31d961b4b7041ec1b748ce65f256df64e113de (diff)
downloadserenity-133706d697b7e7441a7f4968b5a52dfc0323d34b.zip
Add API's and plumbing for WindowServer clients to make menus.
Diffstat (limited to 'WindowServer/WSMenu.cpp')
-rw-r--r--WindowServer/WSMenu.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/WindowServer/WSMenu.cpp b/WindowServer/WSMenu.cpp
index 01fac116ea..8d86371260 100644
--- a/WindowServer/WSMenu.cpp
+++ b/WindowServer/WSMenu.cpp
@@ -7,8 +7,9 @@
#include <SharedGraphics/Painter.h>
#include <SharedGraphics/Font.h>
-WSMenu::WSMenu(const String& name)
- : m_name(name)
+WSMenu::WSMenu(int menu_id, String&& name)
+ : m_menu_id(menu_id)
+ , m_name(move(name))
{
}