1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 01:47:34 +00:00

LibGUI: Make some API's take String instead of StringView

This commit is contained in:
Andreas Kling 2021-04-17 00:47:36 +02:00
parent 36f27094d0
commit 0e4eb62dd8
6 changed files with 20 additions and 20 deletions

View file

@ -38,7 +38,6 @@ namespace GUI {
class Menu final : public Core::Object {
C_OBJECT(Menu)
public:
explicit Menu(const StringView& name = "");
virtual ~Menu() override;
void realize_menu_if_needed();
@ -68,6 +67,8 @@ public:
private:
friend class Menubar;
explicit Menu(String name = "");
int realize_menu(RefPtr<Action> default_action = nullptr);
void unrealize_menu();
void realize_if_needed(const RefPtr<Action>& default_action);