diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-02-17 09:06:47 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-02-17 09:07:07 +0100 |
commit | fa452fadca1c372cff8486d726d25b27de54fbfd (patch) | |
tree | b86a7d709f2bafb6f0cc3cb719152522bd9c61cb /WindowServer/WSWindowManager.cpp | |
parent | 459cc234410bf2344144b2a5419c27f769dd3981 (diff) | |
download | serenity-fa452fadca1c372cff8486d726d25b27de54fbfd.zip |
WindowServer: Let menu objects reference the WSClientConnection by pointer.
Since these are owner/ownee relationships, there's no need for indirection.
Diffstat (limited to 'WindowServer/WSWindowManager.cpp')
-rw-r--r-- | WindowServer/WSWindowManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/WindowServer/WSWindowManager.cpp b/WindowServer/WSWindowManager.cpp index 08ffefa86d..6d239a0fc2 100644 --- a/WindowServer/WSWindowManager.cpp +++ b/WindowServer/WSWindowManager.cpp @@ -184,7 +184,7 @@ WSWindowManager::WSWindowManager() { byte system_menu_name[] = { 0xf8, 0 }; - m_system_menu = make<WSMenu>(-1, -1, String((const char*)system_menu_name)); + m_system_menu = make<WSMenu>(nullptr, -1, String((const char*)system_menu_name)); m_system_menu->add_item(make<WSMenuItem>(0, "Launch Terminal")); m_system_menu->add_item(make<WSMenuItem>(WSMenuItem::Separator)); m_system_menu->add_item(make<WSMenuItem>(1, "Hello again")); |