diff options
author | kleines Filmröllchen <filmroellchen@serenityos.org> | 2022-07-23 13:49:41 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-07-25 15:25:13 +0200 |
commit | 281b319588b5af00445fdb9f5b57c51ff8eef05e (patch) | |
tree | 2c3068385a3954dff92940a005f0343a3400b214 /Userland/Libraries | |
parent | fac4529082eb118e801c8957b326b22bf57afe9c (diff) | |
download | serenity-281b319588b5af00445fdb9f5b57c51ff8eef05e.zip |
LibGUI: Make Checkbox constructor protected
Diffstat (limited to 'Userland/Libraries')
-rw-r--r-- | Userland/Libraries/LibGUI/CheckBox.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGUI/CheckBox.h b/Userland/Libraries/LibGUI/CheckBox.h index f5899f0ff3..f39f938057 100644 --- a/Userland/Libraries/LibGUI/CheckBox.h +++ b/Userland/Libraries/LibGUI/CheckBox.h @@ -29,9 +29,10 @@ public: CheckBoxPosition checkbox_position() const { return m_checkbox_position; } void set_checkbox_position(CheckBoxPosition value) { m_checkbox_position = value; } -private: +protected: explicit CheckBox(String = {}); +private: void size_to_fit(); // These don't make sense for a check box, so hide them. |