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

Unified Diff: mojo/public/tools/bindings/generators/cpp_templates/struct_serialization_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/struct_serialization_definition.tmpl
diff --git a/mojo/public/tools/bindings/generators/cpp_templates/struct_serialization_definition.tmpl b/mojo/public/tools/bindings/generators/cpp_templates/struct_serialization_definition.tmpl
index 555750180d52ac4cee1949d067d33929e8aad09e..8c5a79ad184d78ff3afe50fb4b86b2bd09b016c6 100644
--- a/mojo/public/tools/bindings/generators/cpp_templates/struct_serialization_definition.tmpl
+++ b/mojo/public/tools/bindings/generators/cpp_templates/struct_serialization_definition.tmpl
@@ -23,7 +23,7 @@ bool Deserialize_(internal::{{struct.name}}_Data* input,
if (input) {
{{struct.name}}Ptr result({{struct.name}}::New());
{{struct_macros.deserialize(struct, "input", "result->%s", "context", "success")|indent(2)}}
- *output = result.Pass();
+ *output = std::move(result);
} else {
output->reset();
}

Powered by Google App Engine
This is Rietveld 408576698