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

Unified Diff: third_party/WebKit/Source/core/animation/animatable/AnimatableLengthBox.h

Issue 2761693002: Wrapped PassRefPtrs in move where passed to RefPtr constructor. (Closed)
Patch Set: Added move wraps for multiple instances in 1 line. Created 3 years, 9 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/AnimatableLengthBox.h
diff --git a/third_party/WebKit/Source/core/animation/animatable/AnimatableLengthBox.h b/third_party/WebKit/Source/core/animation/animatable/AnimatableLengthBox.h
index fca9ed24622a6a0bf600f6f57e7f0b13e9456a6f..5b5db3ea68bfd6add320271352adac639e31b852 100644
--- a/third_party/WebKit/Source/core/animation/animatable/AnimatableLengthBox.h
+++ b/third_party/WebKit/Source/core/animation/animatable/AnimatableLengthBox.h
@@ -61,7 +61,10 @@ class AnimatableLengthBox final : public AnimatableValue {
PassRefPtr<AnimatableValue> right,
PassRefPtr<AnimatableValue> top,
PassRefPtr<AnimatableValue> bottom)
- : m_left(left), m_right(right), m_top(top), m_bottom(bottom) {}
+ : m_left(std::move(left)),
+ m_right(std::move(right)),
+ m_top(std::move(top)),
+ m_bottom(std::move(bottom)) {}
AnimatableType type() const override { return TypeLengthBox; }
bool equalTo(const AnimatableValue*) const override;

Powered by Google App Engine
This is Rietveld 408576698