mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 00:25:12 +00:00
LibGUI: Convert remaining random little things to ObjectPtr
This commit is contained in:
@@ -33,7 +33,7 @@ public:
|
||||
|
||||
virtual ObjectPtr<GWidget> create_widget() override
|
||||
{
|
||||
auto* combo = new GComboBox(nullptr);
|
||||
auto combo = GComboBox::construct(nullptr);
|
||||
combo->set_only_allow_values_from_model(true);
|
||||
combo->set_model(adopt(*new BoolValuesModel));
|
||||
combo->on_return_pressed = [this] { commit(); };
|
||||
|
||||
Reference in New Issue
Block a user