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

Unified Diff: net/quic/quic_config.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_client_session_test.cc ('k') | net/quic/quic_connection.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_config.cc
diff --git a/net/quic/quic_config.cc b/net/quic/quic_config.cc
index 55ea08271e167a3d43043ce96d3691386ef93f5c..5330b7c9d6dedc741a4436accbdf88f2bec3268f 100644
--- a/net/quic/quic_config.cc
+++ b/net/quic/quic_config.cc
@@ -26,7 +26,7 @@ QuicErrorCode ReadUint32(const CryptoHandshakeMessage& msg,
uint32 default_value,
uint32* out,
string* error_details) {
- DCHECK(error_details != NULL);
+ DCHECK(error_details != nullptr);
QuicErrorCode error = msg.GetUint32(tag, out);
switch (error) {
case QUIC_CRYPTO_MESSAGE_PARAMETER_NOT_FOUND:
@@ -96,7 +96,7 @@ QuicErrorCode QuicNegotiableUint32::ProcessPeerHello(
HelloType hello_type,
string* error_details) {
DCHECK(!negotiated_);
- DCHECK(error_details != NULL);
+ DCHECK(error_details != nullptr);
uint32 value;
QuicErrorCode error = ReadUint32(peer_hello,
tag_,
@@ -155,7 +155,7 @@ QuicErrorCode QuicNegotiableTag::ReadVector(
const QuicTag** out,
size_t* out_length,
string* error_details) const {
- DCHECK(error_details != NULL);
+ DCHECK(error_details != nullptr);
QuicErrorCode error = msg.GetTaglist(tag_, out, out_length);
switch (error) {
case QUIC_CRYPTO_MESSAGE_PARAMETER_NOT_FOUND:
@@ -181,7 +181,7 @@ QuicErrorCode QuicNegotiableTag::ProcessPeerHello(
HelloType hello_type,
string* error_details) {
DCHECK(!negotiated_);
- DCHECK(error_details != NULL);
+ DCHECK(error_details != nullptr);
const QuicTag* received_tags;
size_t received_tags_length;
QuicErrorCode error = ReadVector(peer_hello, &received_tags,
@@ -204,7 +204,7 @@ QuicErrorCode QuicNegotiableTag::ProcessPeerHello(
received_tags_length,
QuicUtils::LOCAL_PRIORITY,
&negotiated_tag,
- NULL)) {
+ nullptr)) {
*error_details = "Unsupported " + QuicUtils::TagToString(tag_);
return QUIC_CRYPTO_MESSAGE_PARAMETER_NO_OVERLAP;
}
@@ -262,7 +262,7 @@ QuicErrorCode QuicFixedUint32::ProcessPeerHello(
const CryptoHandshakeMessage& peer_hello,
HelloType hello_type,
string* error_details) {
- DCHECK(error_details != NULL);
+ DCHECK(error_details != nullptr);
QuicErrorCode error = peer_hello.GetUint32(tag_, &receive_value_);
switch (error) {
case QUIC_CRYPTO_MESSAGE_PARAMETER_NOT_FOUND:
@@ -330,7 +330,7 @@ QuicErrorCode QuicFixedTag::ProcessPeerHello(
const CryptoHandshakeMessage& peer_hello,
HelloType hello_type,
string* error_details) {
- DCHECK(error_details != NULL);
+ DCHECK(error_details != nullptr);
QuicErrorCode error = peer_hello.GetUint32(tag_, &receive_value_);
switch (error) {
case QUIC_CRYPTO_MESSAGE_PARAMETER_NOT_FOUND:
@@ -398,7 +398,7 @@ QuicErrorCode QuicFixedTagVector::ProcessPeerHello(
const CryptoHandshakeMessage& peer_hello,
HelloType hello_type,
string* error_details) {
- DCHECK(error_details != NULL);
+ DCHECK(error_details != nullptr);
const QuicTag* received_tags;
size_t received_tags_length;
QuicErrorCode error =
@@ -667,7 +667,7 @@ QuicErrorCode QuicConfig::ProcessPeerHello(
const CryptoHandshakeMessage& peer_hello,
HelloType hello_type,
string* error_details) {
- DCHECK(error_details != NULL);
+ DCHECK(error_details != nullptr);
QuicErrorCode error = QUIC_NO_ERROR;
if (error == QUIC_NO_ERROR) {
« no previous file with comments | « net/quic/quic_client_session_test.cc ('k') | net/quic/quic_connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698