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

Unified Diff: mojo/converters/geometry/geometry_type_converters.cc

Issue 1538823002: Convert Pass()→std::move() in mojo/ (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/converters/geometry/geometry_type_converters.cc
diff --git a/mojo/converters/geometry/geometry_type_converters.cc b/mojo/converters/geometry/geometry_type_converters.cc
index c918d01a7240e428a8b2cee3423f386ad8b57aaa..980adbcd5c70c458c4feee3f4be31301d9a60efe 100644
--- a/mojo/converters/geometry/geometry_type_converters.cc
+++ b/mojo/converters/geometry/geometry_type_converters.cc
@@ -11,7 +11,7 @@ PointPtr TypeConverter<PointPtr, gfx::Point>::Convert(const gfx::Point& input) {
PointPtr point(Point::New());
point->x = input.x();
point->y = input.y();
- return point.Pass();
+ return point;
}
// static
@@ -27,7 +27,7 @@ PointFPtr TypeConverter<PointFPtr, gfx::PointF>::Convert(
PointFPtr point(PointF::New());
point->x = input.x();
point->y = input.y();
- return point.Pass();
+ return point;
}
// static
@@ -43,7 +43,7 @@ SizePtr TypeConverter<SizePtr, gfx::Size>::Convert(const gfx::Size& input) {
SizePtr size(Size::New());
size->width = input.width();
size->height = input.height();
- return size.Pass();
+ return size;
}
// static
@@ -60,7 +60,7 @@ RectPtr TypeConverter<RectPtr, gfx::Rect>::Convert(const gfx::Rect& input) {
rect->y = input.y();
rect->width = input.width();
rect->height = input.height();
- return rect.Pass();
+ return rect;
}
// static
@@ -77,7 +77,7 @@ RectFPtr TypeConverter<RectFPtr, gfx::RectF>::Convert(const gfx::RectF& input) {
rect->y = input.y();
rect->width = input.width();
rect->height = input.height();
- return rect.Pass();
+ return rect;
}
// static
@@ -138,7 +138,7 @@ InsetsPtr TypeConverter<InsetsPtr, gfx::Insets>::Convert(
insets->left = input.left();
insets->bottom = input.bottom();
insets->right = input.right();
- return insets.Pass();
+ return insets;
}
// static

Powered by Google App Engine
This is Rietveld 408576698