From 281b319588b5af00445fdb9f5b57c51ff8eef05e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?kleines=20Filmr=C3=B6llchen?= Date: Sat, 23 Jul 2022 13:49:41 +0200 Subject: [PATCH] LibGUI: Make Checkbox constructor protected --- Userland/Libraries/LibGUI/CheckBox.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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.