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

Unified Diff: third_party/WebKit/Source/modules/fetch/FormDataBytesConsumer.cpp

Issue 2761693002: Wrapped PassRefPtrs in move where passed to RefPtr constructor. (Closed)
Patch Set: Added move wraps for multiple instances in 1 line. Created 3 years, 9 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/modules/fetch/FormDataBytesConsumer.cpp
diff --git a/third_party/WebKit/Source/modules/fetch/FormDataBytesConsumer.cpp b/third_party/WebKit/Source/modules/fetch/FormDataBytesConsumer.cpp
index 0e36d2d7df54c02992f8a87ea94caded250b6b30..deda27d3091cb5901ec9939a2912379d518e1437 100644
--- a/third_party/WebKit/Source/modules/fetch/FormDataBytesConsumer.cpp
+++ b/third_party/WebKit/Source/modules/fetch/FormDataBytesConsumer.cpp
@@ -29,7 +29,7 @@ bool isSimple(const EncodedFormData* formData) {
class SimpleFormDataBytesConsumer : public BytesConsumer {
public:
explicit SimpleFormDataBytesConsumer(PassRefPtr<EncodedFormData> formData)
- : m_formData(formData) {}
+ : m_formData(std::move(formData)) {}
// BytesConsumer implementation
Result beginRead(const char** buffer, size_t* available) override {
@@ -105,7 +105,7 @@ class ComplexFormDataBytesConsumer final : public BytesConsumer {
ComplexFormDataBytesConsumer(ExecutionContext* executionContext,
PassRefPtr<EncodedFormData> formData,
BytesConsumer* consumer)
- : m_formData(formData) {
+ : m_formData(std::move(formData)) {
if (consumer) {
// For testing.
m_blobBytesConsumer = consumer;
« no previous file with comments | « third_party/WebKit/Source/modules/fetch/BlobBytesConsumer.cpp ('k') | third_party/WebKit/Source/modules/indexeddb/IDBKey.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698