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

Unified Diff: third_party/WebKit/Source/core/animation/ListInterpolationFunctions.h

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/ListInterpolationFunctions.h
diff --git a/third_party/WebKit/Source/core/animation/ListInterpolationFunctions.h b/third_party/WebKit/Source/core/animation/ListInterpolationFunctions.h
index b8b7ea19ec4fbcc99073e8559bc97369c2b1a867..b80dd09f7402f8fe95d6167d55f5c17809ac9a59 100644
--- a/third_party/WebKit/Source/core/animation/ListInterpolationFunctions.h
+++ b/third_party/WebKit/Source/core/animation/ListInterpolationFunctions.h
@@ -75,10 +75,10 @@ InterpolationValue ListInterpolationFunctions::createList(size_t length, CreateI
InterpolationValue item = createItem(i);
if (!item)
return nullptr;
- interpolableList->set(i, item.interpolableValue.release());
+ interpolableList->set(i, std::move(item.interpolableValue));
nonInterpolableValues[i] = item.nonInterpolableValue.release();
}
- return InterpolationValue(interpolableList.release(), NonInterpolableList::create(std::move(nonInterpolableValues)));
+ return InterpolationValue(std::move(interpolableList), NonInterpolableList::create(std::move(nonInterpolableValues)));
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698