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

Unified Diff: third_party/WebKit/Source/platform/exported/WebData.cpp

Issue 2879133002: Made conversions from PassRefPtr to WebPrivatePtr move only. (Closed)
Patch Set: Created 3 years, 7 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/exported/WebData.cpp
diff --git a/third_party/WebKit/Source/platform/exported/WebData.cpp b/third_party/WebKit/Source/platform/exported/WebData.cpp
index 1c870f97e065560248d2c61a28501e4e6ed51fdd..9f9dca278a845fdd41dde44678b5f142cc33730b 100644
--- a/third_party/WebKit/Source/platform/exported/WebData.cpp
+++ b/third_party/WebKit/Source/platform/exported/WebData.cpp
@@ -58,10 +58,11 @@ const char* WebData::Data() const {
return private_->Data();
}
-WebData::WebData(PassRefPtr<SharedBuffer> buffer) : private_(buffer) {}
+WebData::WebData(PassRefPtr<SharedBuffer> buffer)
+ : private_(std::move(buffer)) {}
WebData& WebData::operator=(PassRefPtr<SharedBuffer> buffer) {
- private_ = buffer;
+ private_ = std::move(buffer);
return *this;
}

Powered by Google App Engine
This is Rietveld 408576698