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

Unified Diff: net/tools/quic/quic_client.cc

Issue 612323013: QUIC - (no behavior change) s/NULL/nullptr/g in .../quic/... (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 | « net/tools/quic/end_to_end_test.cc ('k') | net/tools/quic/quic_client_session.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_client.cc
diff --git a/net/tools/quic/quic_client.cc b/net/tools/quic/quic_client.cc
index 48f789fac555836905aed1b1f052cebbb4ca605d..e70d8b845f3ad16ef644216cd07232a6c53280aa 100644
--- a/net/tools/quic/quic_client.cc
+++ b/net/tools/quic/quic_client.cc
@@ -235,7 +235,7 @@ void QuicClient::SendRequestsAndWaitForResponse(
BalsaHeaders headers;
headers.SetRequestFirstlineFromStringPieces("GET", args[i], "HTTP/1.1");
QuicSpdyClientStream* stream = CreateReliableClientStream();
- DCHECK(stream != NULL);
+ DCHECK(stream != nullptr);
stream->SendRequest(headers, "", true);
stream->set_visitor(this);
}
@@ -245,7 +245,7 @@ void QuicClient::SendRequestsAndWaitForResponse(
QuicSpdyClientStream* QuicClient::CreateReliableClientStream() {
if (!connected()) {
- return NULL;
+ return nullptr;
}
return session_->CreateOutgoingDataStream();
@@ -293,7 +293,7 @@ void QuicClient::OnEvent(int fd, EpollEvent* event) {
void QuicClient::OnClose(QuicDataStream* stream) {
QuicSpdyClientStream* client_stream =
static_cast<QuicSpdyClientStream*>(stream);
- if (response_listener_.get() != NULL) {
+ if (response_listener_.get() != nullptr) {
response_listener_->OnCompleteResponse(
stream->id(), client_stream->headers(), client_stream->data());
}
@@ -335,8 +335,9 @@ int QuicClient::ReadPacket(char* buffer,
IPEndPoint* server_address,
IPAddressNumber* client_ip) {
return QuicSocketUtils::ReadPacket(
- fd_, buffer, buffer_len, overflow_supported_ ? &packets_dropped_ : NULL,
- client_ip, server_address);
+ fd_, buffer, buffer_len,
+ overflow_supported_ ? &packets_dropped_ : nullptr, client_ip,
+ server_address);
}
bool QuicClient::ReadAndProcessPacket() {
« no previous file with comments | « net/tools/quic/end_to_end_test.cc ('k') | net/tools/quic/quic_client_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698