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

Unified Diff: third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp

Issue 2622043003: Replaced RefPtr::release with std::move in Source/core. (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/core/xmlhttprequest/XMLHttpRequest.cpp
diff --git a/third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp b/third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp
index 65b3bdc493eaac6fd03ced694969b80b8d246901..83cf8870ba32de0216f5210be09a6d7a37853189 100644
--- a/third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp
+++ b/third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp
@@ -770,7 +770,7 @@ void XMLHttpRequest::send(Document* document, ExceptionState& exceptionState) {
UTF8Encoding().encode(body, WTF::EntitiesForUnencodables));
}
- createRequest(httpBody.release(), exceptionState);
+ createRequest(std::move(httpBody), exceptionState);
}
void XMLHttpRequest::send(const String& body, ExceptionState& exceptionState) {
@@ -795,7 +795,7 @@ void XMLHttpRequest::send(const String& body, ExceptionState& exceptionState) {
UTF8Encoding().encode(body, WTF::EntitiesForUnencodables));
}
- createRequest(httpBody.release(), exceptionState);
+ createRequest(std::move(httpBody), exceptionState);
}
void XMLHttpRequest::send(Blob* body, ExceptionState& exceptionState) {
@@ -830,7 +830,7 @@ void XMLHttpRequest::send(Blob* body, ExceptionState& exceptionState) {
}
}
- createRequest(httpBody.release(), exceptionState);
+ createRequest(std::move(httpBody), exceptionState);
}
void XMLHttpRequest::send(FormData* body, ExceptionState& exceptionState) {
@@ -852,7 +852,7 @@ void XMLHttpRequest::send(FormData* body, ExceptionState& exceptionState) {
}
}
- createRequest(httpBody.release(), exceptionState);
+ createRequest(std::move(httpBody), exceptionState);
}
void XMLHttpRequest::send(DOMArrayBuffer* body,
@@ -881,7 +881,7 @@ void XMLHttpRequest::sendBytesData(const void* data,
httpBody = EncodedFormData::create(data, length);
}
- createRequest(httpBody.release(), exceptionState);
+ createRequest(std::move(httpBody), exceptionState);
}
void XMLHttpRequest::sendForInspectorXHRReplay(

Powered by Google App Engine
This is Rietveld 408576698