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

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

Issue 2628773002: Replaced RefPtr::release with std::move in Source/platform. (Closed)
Patch Set: Created 3 years, 11 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/ImageSource.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/ImageSource.cpp b/third_party/WebKit/Source/platform/graphics/ImageSource.cpp
index 3abcd4283c5e7907232d1cb8cf07454dcbaf203c..a391d97559e97491db8427e573903b208d3c7e8a 100644
--- a/third_party/WebKit/Source/platform/graphics/ImageSource.cpp
+++ b/third_party/WebKit/Source/platform/graphics/ImageSource.cpp
@@ -52,7 +52,7 @@ bool ImageSource::setData(PassRefPtr<SharedBuffer> passData,
m_allDataReceived = allDataReceived;
if (m_decoder) {
- m_decoder->setData(data.release(), allDataReceived);
+ m_decoder->setData(std::move(data), allDataReceived);
// If the decoder is pre-instantiated, it means we've already validated the
// data/signature at some point.
return true;

Powered by Google App Engine
This is Rietveld 408576698