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

Unified Diff: third_party/WebKit/Source/core/animation/SVGNumberListInterpolationType.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/SVGNumberListInterpolationType.cpp
diff --git a/third_party/WebKit/Source/core/animation/SVGNumberListInterpolationType.cpp b/third_party/WebKit/Source/core/animation/SVGNumberListInterpolationType.cpp
index d22799387982e4d230fb75a340435adbf6b6878f..4eaa1e74d11bda62241e728dfb1c2ca0575dcfda 100644
--- a/third_party/WebKit/Source/core/animation/SVGNumberListInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/SVGNumberListInterpolationType.cpp
@@ -21,7 +21,7 @@ InterpolationValue SVGNumberListInterpolationType::maybeConvertNeutral(const Int
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 SVGNumberListInterpolationType::maybeConvertSVGValue(const SVGPropertyBase& svgValue) const
@@ -33,7 +33,7 @@ InterpolationValue SVGNumberListInterpolationType::maybeConvertSVGValue(const SV
OwnPtr<InterpolableList> result = InterpolableList::create(numberList.length());
for (size_t i = 0; i < numberList.length(); i++)
result->set(i, InterpolableNumber::create(numberList.at(i)->value()));
- return InterpolationValue(result.release());
+ return InterpolationValue(std::move(result));
}
PairwiseInterpolationValue SVGNumberListInterpolationType::maybeMergeSingles(InterpolationValue&& start, InterpolationValue&& end) const
@@ -55,10 +55,10 @@ static void padWithZeroes(OwnPtr<InterpolableValue>& listPointer, size_t paddedL
OwnPtr<InterpolableList> result = InterpolableList::create(paddedLength);
size_t i = 0;
for (; i < list.length(); i++)
- result->set(i, list.getMutable(i).release());
+ result->set(i, std::move(list.getMutable(i)));
for (; i < paddedLength; i++)
result->set(i, InterpolableNumber::create(0));
- listPointer = result.release();
+ listPointer = std::move(result);
}
void SVGNumberListInterpolationType::composite(UnderlyingValueOwner& underlyingValueOwner, double underlyingFraction, const InterpolationValue& value, double interpolationFraction) const

Powered by Google App Engine
This is Rietveld 408576698