aboutsummaryrefslogtreecommitdiff
path: root/src/google/protobuf/stubs/logging.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/logging.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/logging.h')
-rw-r--r--src/google/protobuf/stubs/logging.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/google/protobuf/stubs/logging.h b/src/google/protobuf/stubs/logging.h
index f69605d9..f7c6d6a8 100644
--- a/src/google/protobuf/stubs/logging.h
+++ b/src/google/protobuf/stubs/logging.h
@@ -162,7 +162,7 @@ namespace internal {
template<typename T>
T* CheckNotNull(const char* /* file */, int /* line */,
const char* name, T* val) {
- if (val == NULL) {
+ if (val == nullptr) {
GOOGLE_LOG(FATAL) << name;
}
return val;
@@ -170,7 +170,7 @@ T* CheckNotNull(const char* /* file */, int /* line */,
} // namespace internal
#define GOOGLE_CHECK_NOTNULL(A) \
::google::protobuf::internal::CheckNotNull(\
- __FILE__, __LINE__, "'" #A "' must not be NULL", (A))
+ __FILE__, __LINE__, "'" #A "' must not be nullptr", (A))
#ifdef NDEBUG
@@ -208,7 +208,7 @@ typedef void LogHandler(LogLevel level, const char* filename, int line,
// also help end users figure out a problem. If you would prefer that
// these messages be sent somewhere other than stderr, call SetLogHandler()
// to set your own handler. This returns the old handler. Set the handler
-// to NULL to ignore log messages (but see also LogSilencer, below).
+// to nullptr to ignore log messages (but see also LogSilencer, below).
//
// Obviously, SetLogHandler is not thread-safe. You should only call it
// at initialization time, and probably not from library code. If you