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

Unified Diff: third_party/WebKit/Source/core/animation/animatable/AnimatableLengthPoint.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/animatable/AnimatableLengthPoint.h
diff --git a/third_party/WebKit/Source/core/animation/animatable/AnimatableLengthPoint.h b/third_party/WebKit/Source/core/animation/animatable/AnimatableLengthPoint.h
index a7248c3aad9979e7178f6be90c775a4c0b7e4a20..65d272427047ba108fe4dc2d9880149594d30299 100644
--- a/third_party/WebKit/Source/core/animation/animatable/AnimatableLengthPoint.h
+++ b/third_party/WebKit/Source/core/animation/animatable/AnimatableLengthPoint.h
@@ -40,7 +40,7 @@ public:
~AnimatableLengthPoint() override { }
static PassRefPtr<AnimatableLengthPoint> create(PassRefPtr<AnimatableValue> x, PassRefPtr<AnimatableValue> y)
{
- return adoptRef(new AnimatableLengthPoint(x, y));
+ return adoptRef(new AnimatableLengthPoint(std::move(x), std::move(y)));
}
const AnimatableValue* x() const { return m_x.get(); }
const AnimatableValue* y() const { return m_y.get(); }

Powered by Google App Engine
This is Rietveld 408576698