mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 14:24:57 +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:
parent
476911e1f9
commit
cd9ad6a05e
9 changed files with 25 additions and 21 deletions
|
@ -36,8 +36,8 @@ namespace GUI {
|
|||
static const int s_box_width = 13;
|
||||
static const int s_box_height = 13;
|
||||
|
||||
CheckBox::CheckBox(const StringView& text)
|
||||
: AbstractButton(text)
|
||||
CheckBox::CheckBox(String text)
|
||||
: AbstractButton(move(text))
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue