Index: mojo/public/tools/bindings/generators/cpp_templates/interface_definition.tmpl |
diff --git a/mojo/public/tools/bindings/generators/cpp_templates/interface_definition.tmpl b/mojo/public/tools/bindings/generators/cpp_templates/interface_definition.tmpl |
index a4453131d4d701044ebef897da016f69da852661..df2ee80ab5a4207f83df0a3a5c6ae7af3574e8fd 100644 |
--- a/mojo/public/tools/bindings/generators/cpp_templates/interface_definition.tmpl |
+++ b/mojo/public/tools/bindings/generators/cpp_templates/interface_definition.tmpl |
@@ -9,7 +9,7 @@ |
{%- macro alloc_params(struct, serialization_context) %} |
bool success = true; |
{%- for param in struct.packed.packed_fields_in_ordinal_order %} |
- {{param.field.kind|cpp_result_type}} p_{{param.field.name}}{}; |
+ {{param.field.kind|cpp_wrapper_type}} p_{{param.field.name}}{}; |
{%- endfor %} |
{{struct_macros.deserialize(struct, "params", "p_%s", serialization_context, "success")}} |
if (!success) |