mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:57:44 +00:00
LibGUI: Remove GML prefix in favor of proper namespace
Prefixes are very much a C thing which we don't need in C++. This commit moves all GML-related classes in LibGUI into the GUI::GML namespace, a change somewhat overdue.
This commit is contained in:
parent
89201b682b
commit
4931c88b13
17 changed files with 129 additions and 125 deletions
|
@ -11,7 +11,7 @@
|
|||
#include <LibGUI/Application.h>
|
||||
#include <LibGUI/BoxLayout.h>
|
||||
#include <LibGUI/Event.h>
|
||||
#include <LibGUI/GMLParser.h>
|
||||
#include <LibGUI/GML/Parser.h>
|
||||
#include <LibGUI/Layout.h>
|
||||
#include <LibGUI/Menu.h>
|
||||
#include <LibGUI/Painter.h>
|
||||
|
@ -1066,7 +1066,7 @@ bool Widget::load_from_gml(StringView gml_string)
|
|||
|
||||
bool Widget::load_from_gml(StringView gml_string, RefPtr<Core::Object> (*unregistered_child_handler)(const String&))
|
||||
{
|
||||
auto value = parse_gml(gml_string);
|
||||
auto value = GML::parse_gml(gml_string);
|
||||
if (!value.is_object())
|
||||
return false;
|
||||
return load_from_json(value.as_object(), unregistered_child_handler);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue