mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
LibGUI: Tweak AbstractButton and subclass constructors
Taking a "const StringView&" for the initial text does not achieve anything useful. Just take a "String" and move it into storage.
This commit is contained in:
@@ -35,8 +35,8 @@
|
||||
|
||||
namespace GUI {
|
||||
|
||||
Button::Button(const StringView& text)
|
||||
: AbstractButton(text)
|
||||
Button::Button(String text)
|
||||
: AbstractButton(move(text))
|
||||
{
|
||||
set_focus_policy(GUI::FocusPolicy::StrongFocus);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user