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

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

Issue 1550733002: Convert Pass()→std::move() in generated Mojo bindings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 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 %}

Powered by Google App Engine
This is Rietveld 408576698