From e4c7b9817b8c708ef6838e2d5e8a23982c4173ed Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Sun, 21 Jan 2024 13:48:56 +0000 Subject: [PATCH] GMLCompiler: Sort enum_properties alphabetically and remove duplicate --- .../Tools/CodeGenerators/GMLCompiler/main.cpp | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/Meta/Lagom/Tools/CodeGenerators/GMLCompiler/main.cpp b/Meta/Lagom/Tools/CodeGenerators/GMLCompiler/main.cpp index 4d82f027a6..0e786b0312 100644 --- a/Meta/Lagom/Tools/CodeGenerators/GMLCompiler/main.cpp +++ b/Meta/Lagom/Tools/CodeGenerators/GMLCompiler/main.cpp @@ -172,19 +172,18 @@ static ErrorOr> generate_enum_initializer_for(StringView proper { // The value is the enum's type name. static HashMap enum_properties = { - { "text_alignment"sv, "Gfx::TextAlignment"sv }, - { "focus_policy"sv, "GUI::FocusPolicy"sv }, { "background_role"sv, "Gfx::ColorRole"sv }, + { "button_style"sv, "Gfx::ButtonStyle"sv }, + { "checkbox_position"sv, "GUI::CheckBox::CheckBoxPosition"sv }, + { "focus_policy"sv, "GUI::FocusPolicy"sv }, + { "font_weight"sv, "Gfx::FontWeight"sv }, { "foreground_role"sv, "Gfx::ColorRole"sv }, { "frame_style"sv, "Gfx::FrameStyle"sv }, - { "text_wrapping"sv, "Gfx::TextWrapping"sv }, - { "button_style"sv, "Gfx::ButtonStyle"sv }, - { "opportunistic_resizee"sv, "GUI::Splitter::OpportunisticResizee"sv }, - { "checkbox_position"sv, "GUI::CheckBox::CheckBoxPosition"sv }, - { "button_style"sv, "Gfx::ButtonStyle"sv }, { "mode"sv, "GUI::TextEditor::Mode"sv }, - { "font_weight"sv, "Gfx::FontWeight"sv }, + { "opportunistic_resizee"sv, "GUI::Splitter::OpportunisticResizee"sv }, { "orientation"sv, "Gfx::Orientation"sv }, + { "text_alignment"sv, "Gfx::TextAlignment"sv }, + { "text_wrapping"sv, "Gfx::TextWrapping"sv }, }; auto const& enum_type_name = enum_properties.get(property_name);