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

Unified Diff: third_party/WebKit/Source/core/animation/InterpolableValue.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/InterpolableValue.h
diff --git a/third_party/WebKit/Source/core/animation/InterpolableValue.h b/third_party/WebKit/Source/core/animation/InterpolableValue.h
index 97944a0c930800711520481801be1202f8306a15..7bdb787fc1fe4f692715672aa72d5947941bf8a0 100644
--- a/third_party/WebKit/Source/core/animation/InterpolableValue.h
+++ b/third_party/WebKit/Source/core/animation/InterpolableValue.h
@@ -161,7 +161,7 @@ class InterpolableAnimatableValue : public InterpolableValue {
public:
static std::unique_ptr<InterpolableAnimatableValue> create(PassRefPtr<AnimatableValue> value)
{
- return wrapUnique(new InterpolableAnimatableValue(value));
+ return wrapUnique(new InterpolableAnimatableValue(std::move(value)));
}
bool isAnimatableValue() const final { return true; }

Powered by Google App Engine
This is Rietveld 408576698