diff options
author | Andreas Kling <kling@serenityos.org> | 2020-12-28 13:18:10 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-12-28 15:53:10 +0100 |
commit | cd9ad6a05e179935d276e7bcebf4fe6de1e4ef22 (patch) | |
tree | 323815205ae0a1b9e4d291549d921c1467ab41f9 /Libraries/LibGUI/RadioButton.cpp | |
parent | 476911e1f90742c4bf67e9b3d1815c8211f40bdd (diff) | |
download | serenity-cd9ad6a05e179935d276e7bcebf4fe6de1e4ef22.zip |
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.
Diffstat (limited to 'Libraries/LibGUI/RadioButton.cpp')
-rw-r--r-- | Libraries/LibGUI/RadioButton.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Libraries/LibGUI/RadioButton.cpp b/Libraries/LibGUI/RadioButton.cpp index 63fe1d4362..b04052fe18 100644 --- a/Libraries/LibGUI/RadioButton.cpp +++ b/Libraries/LibGUI/RadioButton.cpp @@ -33,8 +33,8 @@ namespace GUI { -RadioButton::RadioButton(const StringView& text) - : AbstractButton(text) +RadioButton::RadioButton(String text) + : AbstractButton(move(text)) { } |