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 |