1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-20 14:55:08 +00:00

WindowServer: Let menu objects reference the WSClientConnection by pointer.

Since these are owner/ownee relationships, there's no need for indirection.
This commit is contained in:
Andreas Kling 2019-02-17 09:06:47 +01:00
parent 459cc23441
commit fa452fadca
6 changed files with 19 additions and 16 deletions

View file

@ -2,8 +2,8 @@
#include "WSMenu.h"
#include "WSMenuItem.h"
WSMenuBar::WSMenuBar(int client_id, int menubar_id)
: m_client_id(client_id)
WSMenuBar::WSMenuBar(WSClientConnection& client, int menubar_id)
: m_client(client)
, m_menubar_id(menubar_id)
{
}