1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-08 11:57:36 +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:
Andreas Kling 2020-12-28 13:18:10 +01:00
parent 476911e1f9
commit cd9ad6a05e
9 changed files with 25 additions and 21 deletions

View file

@ -31,14 +31,15 @@
namespace GUI {
class RadioButton : public AbstractButton {
C_OBJECT(RadioButton)
C_OBJECT(RadioButton);
public:
virtual ~RadioButton() override;
virtual void click(unsigned modifiers = 0) override;
protected:
explicit RadioButton(const StringView& text = {});
explicit RadioButton(String text = {});
virtual void paint_event(PaintEvent&) override;
private: