diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-02-12 00:52:19 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-02-12 00:52:19 +0100 |
commit | 133706d697b7e7441a7f4968b5a52dfc0323d34b (patch) | |
tree | e2af7b65b49ce66a9e003278a0508913f644c578 /WindowServer/WSMenu.cpp | |
parent | bb31d961b4b7041ec1b748ce65f256df64e113de (diff) | |
download | serenity-133706d697b7e7441a7f4968b5a52dfc0323d34b.zip |
Add API's and plumbing for WindowServer clients to make menus.
Diffstat (limited to 'WindowServer/WSMenu.cpp')
-rw-r--r-- | WindowServer/WSMenu.cpp | 5 |
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)) { } |