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

Unified Diff: third_party/WebKit/Source/core/animation/InterpolationValue.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/InterpolationValue.h
diff --git a/third_party/WebKit/Source/core/animation/InterpolationValue.h b/third_party/WebKit/Source/core/animation/InterpolationValue.h
index 71a7010275b2456281e7f71c614d2c0eb26ff447..42b2b39b4f71d480fb7b11a07f6e806dcf850d7e 100644
--- a/third_party/WebKit/Source/core/animation/InterpolationValue.h
+++ b/third_party/WebKit/Source/core/animation/InterpolationValue.h
@@ -24,13 +24,13 @@ struct InterpolationValue {
InterpolationValue(std::nullptr_t) { }
InterpolationValue(InterpolationValue&& other)
- : interpolableValue(other.interpolableValue.release())
+ : interpolableValue(std::move(other.interpolableValue))
, nonInterpolableValue(other.nonInterpolableValue.release())
{ }
void operator=(InterpolationValue&& other)
{
- interpolableValue = other.interpolableValue.release();
+ interpolableValue = std::move(other.interpolableValue);
nonInterpolableValue = other.nonInterpolableValue.release();
}

Powered by Google App Engine
This is Rietveld 408576698