char* QuicDataWriter::take() {
char* rv = buffer_;
- buffer_ = NULL;
+ buffer_ = nullptr;
capacity_ = 0;
length_ = 0;
return rv;
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