diff options
author | kleines Filmröllchen <filmroellchen@serenityos.org> | 2022-02-02 18:11:29 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-02-07 18:39:50 +0100 |
commit | 4931c88b1375b559444de06bf1836a3fed308635 (patch) | |
tree | f5b5d2d2c94935531b38f951747a498163197120 /Userland/Utilities | |
parent | 89201b682b08a5611caf52336784266705026a89 (diff) | |
download | serenity-4931c88b1375b559444de06bf1836a3fed308635.zip |
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.
Diffstat (limited to 'Userland/Utilities')
-rw-r--r-- | Userland/Utilities/gml-format.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Userland/Utilities/gml-format.cpp b/Userland/Utilities/gml-format.cpp index 951cf5bf29..5a2812b5df 100644 --- a/Userland/Utilities/gml-format.cpp +++ b/Userland/Utilities/gml-format.cpp @@ -7,7 +7,7 @@ #include <LibCore/ArgsParser.h> #include <LibCore/File.h> #include <LibCore/System.h> -#include <LibGUI/GMLFormatter.h> +#include <LibGUI/GML/Formatter.h> #include <LibMain/Main.h> ErrorOr<bool> format_file(StringView, bool); @@ -22,7 +22,8 @@ ErrorOr<bool> format_file(StringView path, bool inplace) auto open_mode = inplace ? Core::OpenMode::ReadWrite : Core::OpenMode::ReadOnly; file = TRY(Core::File::open(path, open_mode)); } - auto formatted_gml = GUI::format_gml(file->read_all()); + auto contents = file->read_all(); + auto formatted_gml = GUI::GML::format_gml(contents); if (formatted_gml.is_null()) { warnln("Failed to parse GML!"); return false; |