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

Unified Diff: third_party/WebKit/Source/core/animation/CSSScaleInterpolationType.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/CSSScaleInterpolationType.cpp
diff --git a/third_party/WebKit/Source/core/animation/CSSScaleInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSScaleInterpolationType.cpp
index 69b9128cc06cc0fee51f60d9b7d74c31acdf9ffc..bbb48a1a74facbe177476a560632ded925535cca 100644
--- a/third_party/WebKit/Source/core/animation/CSSScaleInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/CSSScaleInterpolationType.cpp
@@ -42,7 +42,7 @@ struct Scale {
OwnPtr<InterpolableList> result = InterpolableList::create(3);
for (size_t i = 0; i < 3; i++)
result->set(i, InterpolableNumber::create(array[i]));
- return result.release();
+ return std::move(result);
}
bool operator==(const Scale& other) const
@@ -169,8 +169,8 @@ InterpolationValue CSSScaleInterpolationType::maybeConvertSingle(const PropertyS
PairwiseInterpolationValue CSSScaleInterpolationType::maybeMergeSingles(InterpolationValue&& start, InterpolationValue&& end) const
{
return PairwiseInterpolationValue(
- start.interpolableValue.release(),
- end.interpolableValue.release(),
+ std::move(start.interpolableValue),
+ std::move(end.interpolableValue),
CSSScaleNonInterpolableValue::merge(
toCSSScaleNonInterpolableValue(*start.nonInterpolableValue),
toCSSScaleNonInterpolableValue(*end.nonInterpolableValue)));

Powered by Google App Engine
This is Rietveld 408576698