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

Unified Diff: mojo/dart/embedder/test/dart_to_cpp_tests.cc

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
« no previous file with comments | « mojo/converters/surfaces/surfaces_type_converters.cc ('k') | mojo/edk/test/test_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/dart/embedder/test/dart_to_cpp_tests.cc
diff --git a/mojo/dart/embedder/test/dart_to_cpp_tests.cc b/mojo/dart/embedder/test/dart_to_cpp_tests.cc
index 40ed395db25a6833676358fdead2a65bcd5a16e9..a30cfc0f3dedebb5beedcc762c939a58df80e93a 100644
--- a/mojo/dart/embedder/test/dart_to_cpp_tests.cc
+++ b/mojo/dart/embedder/test/dart_to_cpp_tests.cc
@@ -101,7 +101,7 @@ dart_to_cpp::EchoArgsPtr BuildSampleEchoArgs() {
string_array[1] = "two";
string_array[2] = "three";
args->string_array = string_array.Pass();
- return args.Pass();
+ return args;
}
void CheckSampleEchoArgs(const dart_to_cpp::EchoArgs& arg) {
« no previous file with comments | « mojo/converters/surfaces/surfaces_type_converters.cc ('k') | mojo/edk/test/test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698