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

Unified Diff: Source/platform/network/HTTPRequest.cpp

Issue 170603003: Use nullptr_t for RefPtr, PassRefPtr and RawPtr. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Final rebase Created 6 years, 10 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 | « Source/platform/mhtml/MHTMLParser.cpp ('k') | Source/platform/scroll/ScrollView.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/network/HTTPRequest.cpp
diff --git a/Source/platform/network/HTTPRequest.cpp b/Source/platform/network/HTTPRequest.cpp
index d003572167064d24004c423c9ac5d3874c722f1f..cd1694e56032c0760a6fbd8be3c5904314ce3563 100644
--- a/Source/platform/network/HTTPRequest.cpp
+++ b/Source/platform/network/HTTPRequest.cpp
@@ -34,7 +34,7 @@ PassRefPtr<HTTPRequest> HTTPRequest::parseHTTPRequestFromBuffer(const char* data
{
if (!length) {
failureReason = "No data to parse.";
- return 0;
+ return nullptr;
}
// Request we will be building.
@@ -47,14 +47,14 @@ PassRefPtr<HTTPRequest> HTTPRequest::parseHTTPRequestFromBuffer(const char* data
// 1. Parse Method + URL.
size_t requestLineLength = request->parseRequestLine(pos, remainingLength, failureReason);
if (!requestLineLength)
- return 0;
+ return nullptr;
pos += requestLineLength;
remainingLength -= requestLineLength;
// 2. Parse HTTP Headers.
size_t headersLength = request->parseHeaders(pos, remainingLength, failureReason);
if (!headersLength)
- return 0;
+ return nullptr;
pos += headersLength;
remainingLength -= headersLength;
« no previous file with comments | « Source/platform/mhtml/MHTMLParser.cpp ('k') | Source/platform/scroll/ScrollView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698