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

Unified Diff: net/quic/quic_data_writer.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_data_writer.h ('k') | net/quic/quic_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_data_writer.cc
diff --git a/net/quic/quic_data_writer.cc b/net/quic/quic_data_writer.cc
index 70b0fdaed31f8e5abf7d2250a4418052e3fea390..11b6b55042bc06a1fc5c850de3d1a5011a51dcd7 100644
--- a/net/quic/quic_data_writer.cc
+++ b/net/quic/quic_data_writer.cc
@@ -28,7 +28,7 @@ QuicDataWriter::~QuicDataWriter() {
char* QuicDataWriter::take() {
char* rv = buffer_;
- buffer_ = NULL;
+ buffer_ = nullptr;
capacity_ = 0;
length_ = 0;
return rv;
@@ -119,11 +119,11 @@ bool QuicDataWriter::WriteIOVector(const IOVector& data) {
char* QuicDataWriter::BeginWrite(size_t length) {
if (length_ > capacity_) {
- return NULL;
+ return nullptr;
}
if (capacity_ - length_ < length) {
- return NULL;
+ return nullptr;
}
#ifdef ARCH_CPU_64_BITS
« no previous file with comments | « net/quic/quic_data_writer.h ('k') | net/quic/quic_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698