mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 13:25:08 +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
|
@ -31,14 +31,15 @@
|
|||
namespace GUI {
|
||||
|
||||
class CheckBox : public AbstractButton {
|
||||
C_OBJECT(CheckBox)
|
||||
C_OBJECT(CheckBox);
|
||||
|
||||
public:
|
||||
virtual ~CheckBox() override;
|
||||
|
||||
virtual void click(unsigned modifiers = 0) override;
|
||||
|
||||
private:
|
||||
explicit CheckBox(const StringView& = {});
|
||||
explicit CheckBox(String = {});
|
||||
|
||||
// These don't make sense for a check box, so hide them.
|
||||
using AbstractButton::auto_repeat_interval;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue