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

Unified Diff: third_party/WebKit/Source/core/animation/BasicShapeInterpolationFunctions.cpp

Issue 2957513002: Removed calls to RefPtr::Release in return statements with auto move. (Closed)
Patch Set: rebased Created 3 years, 6 months 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: third_party/WebKit/Source/core/animation/BasicShapeInterpolationFunctions.cpp
diff --git a/third_party/WebKit/Source/core/animation/BasicShapeInterpolationFunctions.cpp b/third_party/WebKit/Source/core/animation/BasicShapeInterpolationFunctions.cpp
index 5920ef5729b26b3a4720827152cbd285ee8f84b4..82ad4bf42e0c1b7c5c8dab76964d0e9238597694 100644
--- a/third_party/WebKit/Source/core/animation/BasicShapeInterpolationFunctions.cpp
+++ b/third_party/WebKit/Source/core/animation/BasicShapeInterpolationFunctions.cpp
@@ -226,7 +226,7 @@ PassRefPtr<BasicShape> CreateBasicShape(
CreateCoordinate(*list.Get(kCircleCenterYIndex), conversion_data));
circle->SetRadius(
CreateRadius(*list.Get(kCircleRadiusIndex), conversion_data));
- return circle.Release();
+ return circle;
}
} // namespace CircleFunctions
@@ -303,7 +303,7 @@ PassRefPtr<BasicShape> CreateBasicShape(
CreateRadius(*list.Get(kEllipseRadiusXIndex), conversion_data));
ellipse->SetRadiusY(
CreateRadius(*list.Get(kEllipseRadiusYIndex), conversion_data));
- return ellipse.Release();
+ return ellipse;
}
} // namespace EllipseFunctions
@@ -442,7 +442,7 @@ PassRefPtr<BasicShape> CreateBasicShape(
inset->SetBottomLeftRadius(CreateBorderRadius(
*list.Get(kInsetBorderBottomLeftWidthIndex),
*list.Get(kInsetBorderBottomLeftHeightIndex), conversion_data));
- return inset.Release();
+ return inset;
}
} // namespace InsetFunctions
@@ -497,7 +497,7 @@ PassRefPtr<BasicShape> CreateBasicShape(
LengthInterpolationFunctions::CreateLength(
*list.Get(i + 1), nullptr, conversion_data, kValueRangeAll));
}
- return polygon.Release();
+ return polygon;
}
} // namespace PolygonFunctions

Powered by Google App Engine
This is Rietveld 408576698