mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-24 02:09:28 +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:
@@ -33,8 +33,8 @@
|
||||
|
||||
namespace GUI {
|
||||
|
||||
RadioButton::RadioButton(const StringView& text)
|
||||
: AbstractButton(text)
|
||||
RadioButton::RadioButton(String text)
|
||||
: AbstractButton(move(text))
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user