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

Unified Diff: third_party/WebKit/Source/platform/graphics/BitmapImage.cpp

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/BitmapImage.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/BitmapImage.cpp b/third_party/WebKit/Source/platform/graphics/BitmapImage.cpp
index 63aae48e329791a7bd2998ea1170baa8370c6da3..9f29f85aaeb796b88454c0a80e4bfe5811f8bddc 100644
--- a/third_party/WebKit/Source/platform/graphics/BitmapImage.cpp
+++ b/third_party/WebKit/Source/platform/graphics/BitmapImage.cpp
@@ -200,7 +200,7 @@ Image::SizeAvailability BitmapImage::setData(PassRefPtr<SharedBuffer> data, bool
// If ImageSource::setData() fails, we know that this is a decode error.
// Report size available so that it gets registered as such in ImageResource.
- if (!m_source.setData(data, allDataReceived))
+ if (!m_source.setData(std::move(data), allDataReceived))
return SizeAvailable;
return dataChanged(allDataReceived);

Powered by Google App Engine
This is Rietveld 408576698