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

Unified Diff: net/spdy/core/spdy_pinnable_buffer_piece.cc

Issue 2895993003: Misc cleanup in net/spdy/core. (Closed)
Patch Set: Rebase. Created 3 years, 7 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
Index: net/spdy/core/spdy_pinnable_buffer_piece.cc
diff --git a/net/spdy/core/spdy_pinnable_buffer_piece.cc b/net/spdy/core/spdy_pinnable_buffer_piece.cc
index 84df880a61228728a9e165144a4440ccec554148..a277060dbe610b537db2bb0a4a5abc8f223fc4da 100644
--- a/net/spdy/core/spdy_pinnable_buffer_piece.cc
+++ b/net/spdy/core/spdy_pinnable_buffer_piece.cc
@@ -9,12 +9,12 @@
namespace net {
SpdyPinnableBufferPiece::SpdyPinnableBufferPiece()
- : buffer_(0), length_(0) {}
+ : buffer_(nullptr), length_(0) {}
SpdyPinnableBufferPiece::~SpdyPinnableBufferPiece() {}
void SpdyPinnableBufferPiece::Pin() {
- if (!storage_ && buffer_ != NULL && length_ != 0) {
+ if (!storage_ && buffer_ != nullptr && length_ != 0) {
storage_.reset(new char[length_]);
std::copy(buffer_, buffer_ + length_, storage_.get());
buffer_ = storage_.get();

Powered by Google App Engine
This is Rietveld 408576698