From 35d4b36201e3ded176c38caf1e01827dc034f50b Mon Sep 17 00:00:00 2001 From: Tim Schumacher Date: Thu, 7 Dec 2023 01:33:53 +0100 Subject: [PATCH] GMLCompiler: Fully qualify child class names If we don't do this, and there a class in a namespace with the same name, type resolution gets confused between `::` and `::`. --- Meta/Lagom/Tools/CodeGenerators/GMLCompiler/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Meta/Lagom/Tools/CodeGenerators/GMLCompiler/main.cpp b/Meta/Lagom/Tools/CodeGenerators/GMLCompiler/main.cpp index 9c9b75221c..305ca8223d 100644 --- a/Meta/Lagom/Tools/CodeGenerators/GMLCompiler/main.cpp +++ b/Meta/Lagom/Tools/CodeGenerators/GMLCompiler/main.cpp @@ -312,7 +312,7 @@ static ErrorOr generate_loader_for_object(GUI::GML::Object const& gml_obje auto child_variable_name = TRY(next_child_name()); child_generator.set("child_variable_name", child_variable_name.bytes_as_string_view()); child_generator.set("child_class_name", child.name()); - TRY(append(child_generator, "RefPtr<@child_class_name@> @child_variable_name@;")); + TRY(append(child_generator, "RefPtr<::@child_class_name@> @child_variable_name@;")); TRY(generate_loader_for_object(child, child_generator.fork(), child_variable_name, indentation + 1, UseObjectConstructor::Yes)); // Handle the current two special cases of child adding.