Index: mojo/public/bindings/generators/cpp_templates/struct_builder_definition.tmpl |
diff --git a/mojo/public/bindings/generators/cpp_templates/struct_builder_definition.tmpl b/mojo/public/bindings/generators/cpp_templates/struct_builder_definition.tmpl |
index 86f4c21c9ef38a88787b10a05a1cd6015874b55c..ea9c0e9b2c5f53cbceca38258bea1c0e81dba1b1 100644 |
--- a/mojo/public/bindings/generators/cpp_templates/struct_builder_definition.tmpl |
+++ b/mojo/public/bindings/generators/cpp_templates/struct_builder_definition.tmpl |
@@ -9,7 +9,7 @@ |
{%- macro set_default(kind, value, depth) -%} |
{#--- Strings ---#} |
{%- if kind|is_string_kind -%} |
-{{caller("mojo::String(" ~ value ~ ")")}} |
+{{caller("mojo::String(" ~ value|expression_to_text(module) ~ ")")}} |
{#--- Arrays ---#} |
{%- elif kind|is_array_kind %} |
{%- set _ = value|verify_token_type("ARRAY") %} |
@@ -43,7 +43,7 @@ tmp{{depth}}.set_{{subfield.name}}({{result}}); |
} |
{#--- POD types ---#} |
{%- else -%} |
-{{caller(value|substitute_namespace(imports))}} |
+{{caller(value|expression_to_text(module))}} |
{%- endif %} |
{%- endmacro %} |