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

Unified Diff: third_party/WebKit/Source/core/html/FormData.cpp

Issue 2957513002: Removed calls to RefPtr::Release in return statements with auto move. (Closed)
Patch Set: rebased Created 3 years, 6 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/html/FormData.cpp
diff --git a/third_party/WebKit/Source/core/html/FormData.cpp b/third_party/WebKit/Source/core/html/FormData.cpp
index 8314c4ea99f202be51657fc578f7bade5321ca28..711df366c92191ee2f7848f9403562f74378dba4 100644
--- a/third_party/WebKit/Source/core/html/FormData.cpp
+++ b/third_party/WebKit/Source/core/html/FormData.cpp
@@ -225,7 +225,7 @@ PassRefPtr<EncodedFormData> FormData::EncodeFormData(
: entry->Value(),
encoding_type);
form_data->AppendData(encoded_data.data(), encoded_data.size());
- return form_data.Release();
+ return form_data;
}
PassRefPtr<EncodedFormData> FormData::EncodeMultiPartFormData() {
@@ -301,7 +301,7 @@ PassRefPtr<EncodedFormData> FormData::EncodeMultiPartFormData() {
FormDataEncoder::AddBoundaryToMultiPartHeader(
encoded_data, form_data->Boundary().data(), true);
form_data->AppendData(encoded_data.data(), encoded_data.size());
- return form_data.Release();
+ return form_data;
}
PairIterable<String, FormDataEntryValue>::IterationSource*
« no previous file with comments | « third_party/WebKit/Source/core/dom/Element.cpp ('k') | third_party/WebKit/Source/core/html/HTMLVideoElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698