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

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

Issue 2286233002: Replaced PassRefPtr copies with moves in Source/core/animation. (Closed)
Patch Set: Created 4 years, 4 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/TypedInterpolationValue.h
diff --git a/third_party/WebKit/Source/core/animation/TypedInterpolationValue.h b/third_party/WebKit/Source/core/animation/TypedInterpolationValue.h
index d5b7a3c38126693bf5667f536fdd12d2d7e27958..b4958839ded8d9d79bfd99011d26eaec6ad4f8ef 100644
--- a/third_party/WebKit/Source/core/animation/TypedInterpolationValue.h
+++ b/third_party/WebKit/Source/core/animation/TypedInterpolationValue.h
@@ -18,7 +18,7 @@ class TypedInterpolationValue {
public:
static std::unique_ptr<TypedInterpolationValue> create(const InterpolationType& type, std::unique_ptr<InterpolableValue> interpolableValue, PassRefPtr<NonInterpolableValue> nonInterpolableValue = nullptr)
{
- return wrapUnique(new TypedInterpolationValue(type, std::move(interpolableValue), nonInterpolableValue));
+ return wrapUnique(new TypedInterpolationValue(type, std::move(interpolableValue), std::move(nonInterpolableValue)));
}
std::unique_ptr<TypedInterpolationValue> clone() const
@@ -37,7 +37,7 @@ public:
private:
TypedInterpolationValue(const InterpolationType& type, std::unique_ptr<InterpolableValue> interpolableValue, PassRefPtr<NonInterpolableValue> nonInterpolableValue)
: m_type(type)
- , m_value(std::move(interpolableValue), nonInterpolableValue)
+ , m_value(std::move(interpolableValue), std::move(nonInterpolableValue))
{
DCHECK(m_value.interpolableValue);
}

Powered by Google App Engine
This is Rietveld 408576698