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

Unified Diff: third_party/WebKit/Source/core/animation/SVGPointListInterpolationType.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/SVGPointListInterpolationType.cpp
diff --git a/third_party/WebKit/Source/core/animation/SVGPointListInterpolationType.cpp b/third_party/WebKit/Source/core/animation/SVGPointListInterpolationType.cpp
index 18cbd21dae1bab1fc2324bd0f5540ab19cfbf33c..534cd47a8a0a32feda95f6696f69311b1b1327b9 100644
--- a/third_party/WebKit/Source/core/animation/SVGPointListInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/SVGPointListInterpolationType.cpp
@@ -22,7 +22,7 @@ InterpolationValue SVGPointListInterpolationType::maybeConvertNeutral(const Inte
OwnPtr<InterpolableList> result = InterpolableList::create(underlyingLength);
for (size_t i = 0; i < underlyingLength; i++)
result->set(i, InterpolableNumber::create(0));
- return InterpolationValue(result.release());
+ return InterpolationValue(std::move(result));
}
InterpolationValue SVGPointListInterpolationType::maybeConvertSVGValue(const SVGPropertyBase& svgValue) const
@@ -38,7 +38,7 @@ InterpolationValue SVGPointListInterpolationType::maybeConvertSVGValue(const SVG
result->set(2 * i + 1, InterpolableNumber::create(point.y()));
}
- return InterpolationValue(result.release());
+ return InterpolationValue(std::move(result));
}
PairwiseInterpolationValue SVGPointListInterpolationType::maybeMergeSingles(InterpolationValue&& start, InterpolationValue&& end) const

Powered by Google App Engine
This is Rietveld 408576698