LibGUI: Convert remaining random little things to ObjectPtr

This commit is contained in:
Andreas Kling 2019-09-21 19:39:37 +02:00
commit 409494193e
Notes: sideshowbarker 2024-07-19 12:01:03 +09:00
11 changed files with 15 additions and 13 deletions

View file

@ -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(); };