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

Unified Diff: mojo/public/cpp/bindings/tests/type_conversion_unittest.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/public/cpp/bindings/tests/struct_unittest.cc ('k') | mojo/public/cpp/bindings/type_converter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/cpp/bindings/tests/type_conversion_unittest.cc
diff --git a/mojo/public/cpp/bindings/tests/type_conversion_unittest.cc b/mojo/public/cpp/bindings/tests/type_conversion_unittest.cc
index 328f5b783feb1aecd4221ec0ee7fc2a8b3e3bb3f..d5059d5c9ec7b7ed3958fa0b47f592c441a0d394 100644
--- a/mojo/public/cpp/bindings/tests/type_conversion_unittest.cc
+++ b/mojo/public/cpp/bindings/tests/type_conversion_unittest.cc
@@ -47,7 +47,7 @@ struct TypeConverter<test::RectPtr, RedmondRect> {
rect->y = input.top;
rect->width = input.right - input.left;
rect->height = input.bottom - input.top;
- return rect.Pass();
+ return rect;
}
};
@@ -69,7 +69,7 @@ struct TypeConverter<test::NamedRegionPtr, RedmondNamedRegion> {
test::NamedRegionPtr region(test::NamedRegion::New());
region->name = input.name;
region->rects = Array<test::RectPtr>::From(input.rects);
- return region.Pass();
+ return region;
}
};
« no previous file with comments | « mojo/public/cpp/bindings/tests/struct_unittest.cc ('k') | mojo/public/cpp/bindings/type_converter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698