mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-27 04:37:22 +00:00
LibGUI: Make some API's take String instead of StringView
This commit is contained in:
parent
36f27094d0
commit
0e4eb62dd8
Notes:
sideshowbarker
2024-07-18 19:32:36 +09:00
Author: https://github.com/awesomekling
Commit: 0e4eb62dd8
6 changed files with 20 additions and 20 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue