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

Unified Diff: net/spdy/spdy_pinnable_buffer_piece.h

Issue 1328563002: clang_tidy net/spdy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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/spdy/spdy_framer_test.cc ('k') | net/spdy/spdy_prefixed_buffer_reader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_pinnable_buffer_piece.h
diff --git a/net/spdy/spdy_pinnable_buffer_piece.h b/net/spdy/spdy_pinnable_buffer_piece.h
index 6ffc2639f714cacff92f75c561bfbceadcea1eb1..42bae12a50bab67cd4ddf7f1c39d99a7eff56e2a 100644
--- a/net/spdy/spdy_pinnable_buffer_piece.h
+++ b/net/spdy/spdy_pinnable_buffer_piece.h
@@ -39,9 +39,7 @@ struct NET_EXPORT_PRIVATE SpdyPinnableBufferPiece {
// Allocates and copies the buffer to internal storage.
void Pin();
- bool IsPinned() const {
- return storage_.get() != NULL;
- }
+ bool IsPinned() const { return storage_ != nullptr; }
// Swaps buffers, including internal storage, with |other|.
void Swap(SpdyPinnableBufferPiece* other);
« no previous file with comments | « net/spdy/spdy_framer_test.cc ('k') | net/spdy/spdy_prefixed_buffer_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698