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

Unified Diff: third_party/WebKit/Source/core/animation/SVGLengthListInterpolationType.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/SVGLengthListInterpolationType.cpp
diff --git a/third_party/WebKit/Source/core/animation/SVGLengthListInterpolationType.cpp b/third_party/WebKit/Source/core/animation/SVGLengthListInterpolationType.cpp
index cc0ebe23ce679972b689b81087329b220c4298c2..e70381b628ca4af6e1f556a481295996b2cddb26 100644
--- a/third_party/WebKit/Source/core/animation/SVGLengthListInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/SVGLengthListInterpolationType.cpp
@@ -22,7 +22,7 @@ InterpolationValue SVGLengthListInterpolationType::maybeConvertNeutral(const Int
OwnPtr<InterpolableList> result = InterpolableList::create(underlyingLength);
for (size_t i = 0; i < underlyingLength; i++)
result->set(i, SVGLengthInterpolationType::neutralInterpolableValue());
- return InterpolationValue(result.release());
+ return InterpolationValue(std::move(result));
}
InterpolationValue SVGLengthListInterpolationType::maybeConvertSVGValue(const SVGPropertyBase& svgValue) const
@@ -34,9 +34,9 @@ InterpolationValue SVGLengthListInterpolationType::maybeConvertSVGValue(const SV
OwnPtr<InterpolableList> result = InterpolableList::create(lengthList.length());
for (size_t i = 0; i < lengthList.length(); i++) {
InterpolationValue component = SVGLengthInterpolationType::convertSVGLength(*lengthList.at(i));
- result->set(i, component.interpolableValue.release());
+ result->set(i, std::move(component.interpolableValue));
}
- return InterpolationValue(result.release());
+ return InterpolationValue(std::move(result));
}
PairwiseInterpolationValue SVGLengthListInterpolationType::maybeMergeSingles(InterpolationValue&& start, InterpolationValue&& end) const

Powered by Google App Engine
This is Rietveld 408576698