mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-28 15:28:55 +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
Notes:
sideshowbarker
2024-07-19 00:29:58 +09:00
Author: https://github.com/awesomekling
Commit: cd9ad6a05e
9 changed files with 25 additions and 21 deletions
|
@ -33,8 +33,8 @@
|
|||
|
||||
namespace GUI {
|
||||
|
||||
RadioButton::RadioButton(const StringView& text)
|
||||
: AbstractButton(text)
|
||||
RadioButton::RadioButton(String text)
|
||||
: AbstractButton(move(text))
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue