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

Unified Diff: mojo/public/tools/bindings/generators/cpp_templates/wrapper_union_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_union_class_definition.tmpl
diff --git a/mojo/public/tools/bindings/generators/cpp_templates/wrapper_union_class_definition.tmpl b/mojo/public/tools/bindings/generators/cpp_templates/wrapper_union_class_definition.tmpl
index a73732835f913275c7792406b458e3185860e55c..0f40dd91c8c492f7fa469f662c75d3cde8393ec4 100644
--- a/mojo/public/tools/bindings/generators/cpp_templates/wrapper_union_class_definition.tmpl
+++ b/mojo/public/tools/bindings/generators/cpp_templates/wrapper_union_class_definition.tmpl
@@ -2,7 +2,7 @@
{{union.name}}Ptr {{union.name}}::New() {
{{union.name}}Ptr rv;
mojo::internal::StructHelper<{{union.name}}>::Initialize(&rv);
- return rv.Pass();
+ return rv;
}
{{union.name}}::{{union.name}}() {
@@ -32,7 +32,7 @@
case Tag::__UNKNOWN__:
break;
};
- return rv.Pass();
+ return rv;
}
{%- endif %}

Powered by Google App Engine
This is Rietveld 408576698