aboutsummaryrefslogtreecommitdiff
path: root/src/google/protobuf/stubs/casts.h
diff options
context:
space:
mode:
authorDhruv <dhruv.batra@hotmail.com>2018-08-06 23:10:16 +0800
committerDhruv <dhruv.batra@hotmail.com>2018-08-07 08:03:57 +0800
commit526b350199e604b62daaee9febc5d8a8d593a010 (patch)
treeb5b0408408979675429fab071c5ce1cae1313a54 /src/google/protobuf/stubs/casts.h
parente9a5412afcb5035c02136ba65210bf2cb69d9ab5 (diff)
downloadprotobuf-526b350199e604b62daaee9febc5d8a8d593a010.tar.gz
protobuf-526b350199e604b62daaee9febc5d8a8d593a010.tar.bz2
protobuf-526b350199e604b62daaee9febc5d8a8d593a010.zip
4593 Replace all occurrences of "NULL" to nullptr in src/google/protobug/stubs
Diffstat (limited to 'src/google/protobuf/stubs/casts.h')
-rw-r--r--src/google/protobuf/stubs/casts.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/google/protobuf/stubs/casts.h b/src/google/protobuf/stubs/casts.h
index 35e2dba0..b509f68c 100644
--- a/src/google/protobuf/stubs/casts.h
+++ b/src/google/protobuf/stubs/casts.h
@@ -89,7 +89,7 @@ inline To down_cast(From* f) { // so we only accept pointers
}
#if !defined(NDEBUG) && !defined(GOOGLE_PROTOBUF_NO_RTTI)
- assert(f == NULL || dynamic_cast<To>(f) != NULL); // RTTI: debug mode only!
+ assert(f == nullptr || dynamic_cast<To>(f) != nullptr); // RTTI: debug mode only!
#endif
return static_cast<To>(f);
}
@@ -107,7 +107,7 @@ inline To down_cast(From& f) {
#if !defined(NDEBUG) && !defined(GOOGLE_PROTOBUF_NO_RTTI)
// RTTI: debug mode only!
- assert(dynamic_cast<ToAsPointer>(&f) != NULL);
+ assert(dynamic_cast<ToAsPointer>(&f) != nullptr);
#endif
return *static_cast<ToAsPointer>(&f);
}