summaryrefslogtreecommitdiff
path: root/Libraries/LibGUI/RadioButton.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-12-28 13:18:10 +0100
committerAndreas Kling <kling@serenityos.org>2020-12-28 15:53:10 +0100
commitcd9ad6a05e179935d276e7bcebf4fe6de1e4ef22 (patch)
tree323815205ae0a1b9e4d291549d921c1467ab41f9 /Libraries/LibGUI/RadioButton.cpp
parent476911e1f90742c4bf67e9b3d1815c8211f40bdd (diff)
downloadserenity-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.cpp4
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))
{
}