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

Unified Diff: third_party/WebKit/Source/core/animation/animatable/AnimatableLengthSize.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/AnimatableLengthSize.h
diff --git a/third_party/WebKit/Source/core/animation/animatable/AnimatableLengthSize.h b/third_party/WebKit/Source/core/animation/animatable/AnimatableLengthSize.h
index 06c02dba518517d8284016b0ed3b95f1b59fe646..b85f180a26e126a022c7030bada0d089fdeeebc2 100644
--- a/third_party/WebKit/Source/core/animation/animatable/AnimatableLengthSize.h
+++ b/third_party/WebKit/Source/core/animation/animatable/AnimatableLengthSize.h
@@ -40,7 +40,7 @@ public:
~AnimatableLengthSize() override { }
static PassRefPtr<AnimatableLengthSize> create(PassRefPtr<AnimatableValue> width, PassRefPtr<AnimatableValue> height)
{
- return adoptRef(new AnimatableLengthSize(width, height));
+ return adoptRef(new AnimatableLengthSize(std::move(width), std::move(height)));
}
const AnimatableValue* width() const { return m_width.get(); }
const AnimatableValue* height() const { return m_height.get(); }

Powered by Google App Engine
This is Rietveld 408576698