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

Unified Diff: third_party/WebKit/Source/platform/graphics/GradientGeneratedImage.h

Issue 2306293002: Replaced PassRefPtr copies with moves in Source/platform. (Closed)
Patch Set: Created 4 years, 3 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/platform/graphics/GradientGeneratedImage.h
diff --git a/third_party/WebKit/Source/platform/graphics/GradientGeneratedImage.h b/third_party/WebKit/Source/platform/graphics/GradientGeneratedImage.h
index 59e149a941c4aec9aee4cf416d0ecbad3cc3974d..1e7fdc911161ab9b357a54aa91170d8b3f387f75 100644
--- a/third_party/WebKit/Source/platform/graphics/GradientGeneratedImage.h
+++ b/third_party/WebKit/Source/platform/graphics/GradientGeneratedImage.h
@@ -38,7 +38,7 @@ class PLATFORM_EXPORT GradientGeneratedImage final : public GeneratedImage {
public:
static PassRefPtr<GradientGeneratedImage> create(PassRefPtr<Gradient> generator, const IntSize& size)
{
- return adoptRef(new GradientGeneratedImage(generator, size));
+ return adoptRef(new GradientGeneratedImage(std::move(generator), size));
}
~GradientGeneratedImage() override {}

Powered by Google App Engine
This is Rietveld 408576698