1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 12:38:12 +00:00

LibGUI: Convert GScrollBar to ObjectPtr

This commit is contained in:
Andreas Kling 2019-09-21 15:07:24 +02:00
parent 4616a13e94
commit bce58bbbca
7 changed files with 11 additions and 10 deletions

View file

@ -74,7 +74,7 @@ static GWidget* build_gwidget(VBWidgetType type, GWidget* parent)
case VBWidgetType::GWidget:
return new GWidget(parent);
case VBWidgetType::GScrollBar:
return new GScrollBar(Orientation::Vertical, parent);
return GScrollBar::construct(Orientation::Vertical, parent);
case VBWidgetType::GGroupBox:
return new GGroupBox("groupbox_1", parent);
case VBWidgetType::GLabel: {