1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:17:44 +00:00

GMenu: Allow constructing without a name

We'll just default to "", which works fine for context menus.
This commit is contained in:
Andreas Kling 2019-09-13 21:29:47 +02:00
parent 45ded86bcb
commit 69365ccdd0

View file

@ -10,7 +10,7 @@ class Point;
class GMenu {
public:
explicit GMenu(const StringView& name);
explicit GMenu(const StringView& name = "");
~GMenu();
static GMenu* from_menu_id(int);