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 40d8d89ad5e78885845a7c26224104f561841627..ad66c1112a454c4b4d54da0d893e5afe10baa8c2 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 |
@@ -96,7 +96,7 @@ TransformPtr TypeConverter<TransformPtr, gfx::Transform>::Convert( |
matrix.Swap(&storage); |
TransformPtr transform(Transform::New()); |
transform->matrix = matrix.Pass(); |
- return transform.Pass(); |
+ return transform; |
} |
// static |