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

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: Remove self-move checks to avoid triggering clang warning. 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/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 704110a5ea26edc7137dac78b520bd5213de1015..ab91f3bba76139f6ba08e112bd6097d61ade6d0d 100644
--- a/mojo/public/cpp/bindings/tests/type_conversion_unittest.cc
+++ b/mojo/public/cpp/bindings/tests/type_conversion_unittest.cc
@@ -46,7 +46,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;
}
};
@@ -68,7 +68,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;
}
};

Powered by Google App Engine
This is Rietveld 408576698