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

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

Issue 1977763002: Remove OwnPtr::release() calls in core/ (part 1). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove static_pointer_cast<>s. Created 4 years, 7 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/SVGRectInterpolationType.cpp
diff --git a/third_party/WebKit/Source/core/animation/SVGRectInterpolationType.cpp b/third_party/WebKit/Source/core/animation/SVGRectInterpolationType.cpp
index 411d32976e1aa31c7b44ae0401a5364474abe5fb..76ae4454f41b299a6e10eeb51d03b1fe011a502e 100644
--- a/third_party/WebKit/Source/core/animation/SVGRectInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/SVGRectInterpolationType.cpp
@@ -23,7 +23,7 @@ InterpolationValue SVGRectInterpolationType::maybeConvertNeutral(const Interpola
OwnPtr<InterpolableList> result = InterpolableList::create(RectComponentIndexCount);
for (size_t i = 0; i < RectComponentIndexCount; i++)
result->set(i, InterpolableNumber::create(0));
- return InterpolationValue(result.release());
+ return InterpolationValue(std::move(result));
}
InterpolationValue SVGRectInterpolationType::maybeConvertSVGValue(const SVGPropertyBase& svgValue) const
@@ -37,7 +37,7 @@ InterpolationValue SVGRectInterpolationType::maybeConvertSVGValue(const SVGPrope
result->set(RectY, InterpolableNumber::create(rect.y()));
result->set(RectWidth, InterpolableNumber::create(rect.width()));
result->set(RectHeight, InterpolableNumber::create(rect.height()));
- return InterpolationValue(result.release());
+ return InterpolationValue(std::move(result));
}
SVGPropertyBase* SVGRectInterpolationType::appliedSVGValue(const InterpolableValue& interpolableValue, const NonInterpolableValue*) const

Powered by Google App Engine
This is Rietveld 408576698