mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:38:11 +00:00
LibGUI: Make some API's take String instead of StringView
This commit is contained in:
parent
36f27094d0
commit
0e4eb62dd8
6 changed files with 20 additions and 20 deletions
|
@ -51,8 +51,8 @@ Menu* Menu::from_menu_id(int menu_id)
|
|||
return (*it).value;
|
||||
}
|
||||
|
||||
Menu::Menu(const StringView& name)
|
||||
: m_name(name)
|
||||
Menu::Menu(String name)
|
||||
: m_name(move(name))
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue