diff options
author | Andreas Kling <kling@serenityos.org> | 2020-02-23 12:07:13 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-02-23 12:27:53 +0100 |
commit | c5d913970ab122cdeaf23aea24e65efa6b425ab0 (patch) | |
tree | 07ef4cb2d039521ec7b1931c707b5196b7ea1628 /DevTools/FormCompiler/main.cpp | |
parent | 4ce28c32d1813b043758c0d15d5efc17452c2b77 (diff) | |
download | serenity-c5d913970ab122cdeaf23aea24e65efa6b425ab0.zip |
LibGUI: Remove parent parameter to GUI::Widget constructor
Diffstat (limited to 'DevTools/FormCompiler/main.cpp')
-rw-r--r-- | DevTools/FormCompiler/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/DevTools/FormCompiler/main.cpp b/DevTools/FormCompiler/main.cpp index c94c879134..0823dbe46c 100644 --- a/DevTools/FormCompiler/main.cpp +++ b/DevTools/FormCompiler/main.cpp @@ -90,7 +90,7 @@ int main(int argc, char** argv) dbg() << "UI_" << name << "::UI_" << name << "()"; dbg() << "{"; - dbg() << " main_widget = GUI::Widget::construct(nullptr);"; + dbg() << " main_widget = GUI::Widget::construct();"; dbg() << " main_widget->set_fill_with_background_color(true);"; widgets.as_array().for_each([&](auto& value) { @@ -98,7 +98,7 @@ int main(int argc, char** argv) const JsonObject& widget_object = value.as_object(); auto name = widget_object.get("name").to_string(); auto class_name = widget_object.get("class").to_string(); - dbg() << " " << name << " = " << class_name << "::construct(main_widget);"; + dbg() << " " << name << " = main_widget->add<" << class_name << ">();"; widget_object.for_each_member([&](auto& property_name, const JsonValue& property_value) { if (property_name == "class") |