Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(83)

Unified Diff: mojo/public/tools/bindings/generators/cpp_templates/wrapper_class_definition.tmpl

Issue 1408793006: Convert "return local_var.Pass();" to "return local_var;". (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 421ce0046efd335e5e493dfdf98b413f4e4f208c..fd28c08a7166381981951f0f691357088d8ea6d1 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
@@ -11,7 +11,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}}()
@@ -33,7 +33,7 @@
rv->{{field.name}} = {{field.name}};
{%- endif %}
{%- endfor %}
- return rv.Pass();
+ return rv;
}
{% endif %}

Powered by Google App Engine
This is Rietveld 408576698