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

Unified Diff: net/quic/quic_reliable_client_stream.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/quic/quic_protocol.cc ('k') | net/quic/quic_sent_packet_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_reliable_client_stream.cc
diff --git a/net/quic/quic_reliable_client_stream.cc b/net/quic/quic_reliable_client_stream.cc
index 79397bc58cb92feccc2f9fae721706927794e3d2..b1a82d15ca2df71fe1b9b5489b0a2378d7439397 100644
--- a/net/quic/quic_reliable_client_stream.cc
+++ b/net/quic/quic_reliable_client_stream.cc
@@ -16,7 +16,7 @@ QuicReliableClientStream::QuicReliableClientStream(QuicStreamId id,
const BoundNetLog& net_log)
: QuicDataStream(id, session),
net_log_(net_log),
- delegate_(NULL) {
+ delegate_(nullptr) {
}
QuicReliableClientStream::~QuicReliableClientStream() {
@@ -45,7 +45,7 @@ uint32 QuicReliableClientStream::ProcessData(const char* data,
void QuicReliableClientStream::OnFinRead() {
if (delegate_) {
delegate_->OnClose(connection_error());
- delegate_ = NULL;
+ delegate_ = nullptr;
}
ReliableQuicStream::OnFinRead();
}
@@ -72,7 +72,7 @@ int QuicReliableClientStream::WriteStreamData(
// We should not have data buffered.
DCHECK(!HasBufferedData());
// Writes the data, or buffers it.
- WriteOrBufferData(data, fin, NULL);
+ WriteOrBufferData(data, fin, nullptr);
if (!HasBufferedData()) {
return OK;
}
@@ -90,7 +90,7 @@ void QuicReliableClientStream::SetDelegate(
void QuicReliableClientStream::OnError(int error) {
if (delegate_) {
QuicReliableClientStream::Delegate* delegate = delegate_;
- delegate_ = NULL;
+ delegate_ = nullptr;
delegate->OnError(error);
}
}
« no previous file with comments | « net/quic/quic_protocol.cc ('k') | net/quic/quic_sent_packet_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698