Index: mojo/public/tools/bindings/generators/cpp_templates/wrapper_class_definition.tmpl |
diff --git a/mojo/public/tools/bindings/generators/cpp_templates/wrapper_class_definition.tmpl b/mojo/public/tools/bindings/generators/cpp_templates/wrapper_class_definition.tmpl |
index 279665296f1f6e2d82c6dc3f569e057b1baa9586..a68154fac660b0ac22d934deae62aa0bfbdfe8a6 100644 |
--- a/mojo/public/tools/bindings/generators/cpp_templates/wrapper_class_definition.tmpl |
+++ b/mojo/public/tools/bindings/generators/cpp_templates/wrapper_class_definition.tmpl |
@@ -9,7 +9,7 @@ |
{{struct.name}}Ptr {{struct.name}}::New() { |
{{struct.name}}Ptr rv; |
mojo::internal::StructHelper<{{struct.name}}>::Initialize(&rv); |
- return rv.Pass(); |
+ return rv; |
} |
{{struct.name}}::{{struct.name}}() |
@@ -31,7 +31,7 @@ |
rv->{{field.name}} = {{field.name}}; |
{%- endif %} |
{%- endfor %} |
- return rv.Pass(); |
+ return rv; |
} |
{% endif %} |