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

Unified Diff: third_party/WebKit/Source/core/animation/animatable/AnimatableSVGPaint.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/AnimatableSVGPaint.h
diff --git a/third_party/WebKit/Source/core/animation/animatable/AnimatableSVGPaint.h b/third_party/WebKit/Source/core/animation/animatable/AnimatableSVGPaint.h
index 89e392fa43bbe70d3eb9ee74cd58ba1e46f94e58..16941a9d9824d14e67978f7de676aba646e28184 100644
--- a/third_party/WebKit/Source/core/animation/animatable/AnimatableSVGPaint.h
+++ b/third_party/WebKit/Source/core/animation/animatable/AnimatableSVGPaint.h
@@ -52,7 +52,7 @@ public:
PassRefPtr<AnimatableColor> color,
const String& uri, const String& visitedLinkURI)
{
- return adoptRef(new AnimatableSVGPaint(type, visitedLinkType, color, uri, visitedLinkURI));
+ return adoptRef(new AnimatableSVGPaint(type, visitedLinkType, std::move(color), uri, visitedLinkURI));
}
SVGPaintType paintType() const { return m_type; }
SVGPaintType visitedLinkPaintType() const { return m_visitedLinkType; }

Powered by Google App Engine
This is Rietveld 408576698