aboutsummaryrefslogtreecommitdiff
path: root/src/google/protobuf/stubs/common.cc
diff options
context:
space:
mode:
authorAdam Cozzette <acozzette@gmail.com>2018-08-07 12:05:29 -0700
committerGitHub <noreply@github.com>2018-08-07 12:05:29 -0700
commitf504d95d461319ad9fc11e0925569b84a4c65d7d (patch)
tree0d30b048b4176ec9aa7d3b14a60925cb74c6cc2b /src/google/protobuf/stubs/common.cc
parent3389bd965b1fb6687056d81b069e99f8c2543cba (diff)
parent526b350199e604b62daaee9febc5d8a8d593a010 (diff)
downloadprotobuf-f504d95d461319ad9fc11e0925569b84a4c65d7d.tar.gz
protobuf-f504d95d461319ad9fc11e0925569b84a4c65d7d.tar.bz2
protobuf-f504d95d461319ad9fc11e0925569b84a4c65d7d.zip
Merge pull request #5010 from batradhruv/4593
#4593 Replace all occurrences of "NULL" to nullptr in src/google/proto…
Diffstat (limited to 'src/google/protobuf/stubs/common.cc')
-rw-r--r--src/google/protobuf/stubs/common.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/google/protobuf/stubs/common.cc b/src/google/protobuf/stubs/common.cc
index 6544c6ed..193436fe 100644
--- a/src/google/protobuf/stubs/common.cc
+++ b/src/google/protobuf/stubs/common.cc
@@ -176,12 +176,12 @@ void NullLogHandler(LogLevel /* level */, const char* /* filename */,
static LogHandler* log_handler_ = &DefaultLogHandler;
static int log_silencer_count_ = 0;
-static Mutex* log_silencer_count_mutex_ = NULL;
+static Mutex* log_silencer_count_mutex_ = nullptr;
GOOGLE_PROTOBUF_DECLARE_ONCE(log_silencer_count_init_);
void DeleteLogSilencerCount() {
delete log_silencer_count_mutex_;
- log_silencer_count_mutex_ = NULL;
+ log_silencer_count_mutex_ = nullptr;
}
void InitLogSilencerCount() {
log_silencer_count_mutex_ = new Mutex;
@@ -282,9 +282,9 @@ void LogFinisher::operator=(LogMessage& other) {
LogHandler* SetLogHandler(LogHandler* new_func) {
LogHandler* old = internal::log_handler_;
if (old == &internal::NullLogHandler) {
- old = NULL;
+ old = nullptr;
}
- if (new_func == NULL) {
+ if (new_func == nullptr) {
internal::log_handler_ = &internal::NullLogHandler;
} else {
internal::log_handler_ = new_func;