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

Unified Diff: third_party/WebKit/Source/platform/blob/BlobData.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
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/exported/WebURLResponse.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/blob/BlobData.cpp
diff --git a/third_party/WebKit/Source/platform/blob/BlobData.cpp b/third_party/WebKit/Source/platform/blob/BlobData.cpp
index b295c8817242ea8581938d9997e3c5e19373138f..d3285e23991301742f7e695e4058ee96d65ad9b9 100644
--- a/third_party/WebKit/Source/platform/blob/BlobData.cpp
+++ b/third_party/WebKit/Source/platform/blob/BlobData.cpp
@@ -156,7 +156,7 @@ void BlobData::appendText(const String& text,
}
if (data)
- m_items.push_back(BlobDataItem(data.release()));
+ m_items.push_back(BlobDataItem(std::move(data)));
}
void BlobData::appendBytes(const void* bytes, size_t length) {
@@ -170,7 +170,7 @@ void BlobData::appendBytes(const void* bytes, size_t length) {
RefPtr<RawData> data = RawData::create();
Vector<char>* buffer = data->mutableData();
buffer->append(static_cast<const char*>(bytes), length);
- m_items.push_back(BlobDataItem(data.release()));
+ m_items.push_back(BlobDataItem(std::move(data)));
}
long long BlobData::length() const {
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/exported/WebURLResponse.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698