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

Unified Diff: third_party/WebKit/Source/core/animation/CSSBasicShapeInterpolationType.cpp

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/CSSBasicShapeInterpolationType.cpp
diff --git a/third_party/WebKit/Source/core/animation/CSSBasicShapeInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSBasicShapeInterpolationType.cpp
index 4ac573a3be86d23181237fedd371cc7ca6e9ae1b..4ed5794980dee505ab28373dac34553f445d97a7 100644
--- a/third_party/WebKit/Source/core/animation/CSSBasicShapeInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/CSSBasicShapeInterpolationType.cpp
@@ -21,7 +21,7 @@ class UnderlyingCompatibilityChecker : public InterpolationType::ConversionCheck
public:
static std::unique_ptr<UnderlyingCompatibilityChecker> create(PassRefPtr<NonInterpolableValue> underlyingNonInterpolableValue)
{
- return wrapUnique(new UnderlyingCompatibilityChecker(underlyingNonInterpolableValue));
+ return wrapUnique(new UnderlyingCompatibilityChecker(std::move(underlyingNonInterpolableValue)));
}
private:
@@ -41,7 +41,7 @@ class InheritedShapeChecker : public InterpolationType::ConversionChecker {
public:
static std::unique_ptr<InheritedShapeChecker> create(CSSPropertyID property, PassRefPtr<BasicShape> inheritedShape)
{
- return wrapUnique(new InheritedShapeChecker(property, inheritedShape));
+ return wrapUnique(new InheritedShapeChecker(property, std::move(inheritedShape)));
}
private:

Powered by Google App Engine
This is Rietveld 408576698