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

Unified Diff: mojo/public/cpp/bindings/tests/type_conversion_unittest.cc

Issue 1535943002: Convert Pass()→std::move() in //mojo/public/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Regenerate correctly 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
« no previous file with comments | « mojo/public/cpp/bindings/tests/struct_unittest.cc ('k') | mojo/public/cpp/bindings/tests/union_unittest.cc » ('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 4a1e4a95eee28f21ef47431830d69b36377c6167..38e3abbf2d03b03cb8bc5391eb57709fe147c821 100644
--- a/mojo/public/cpp/bindings/tests/type_conversion_unittest.cc
+++ b/mojo/public/cpp/bindings/tests/type_conversion_unittest.cc
@@ -49,7 +49,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;
}
};
@@ -71,7 +71,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/tests/union_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698