aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/debug
diff options
context:
space:
mode:
authorGravatar Noah Eisen <ncteisen@google.com>2017-11-13 17:08:48 -0800
committerGravatar Noah Eisen <ncteisen@google.com>2017-11-13 17:08:48 -0800
commit6870e6f1fdfe150cb5d3b391cf9a6f667e14c50c (patch)
tree413246709c0d53e0284dcf79e3c99b9a8d0088f5 /src/core/lib/debug
parent68bb1bf7480e87005220003985da19ea0a0929d0 (diff)
clang tidy
Diffstat (limited to 'src/core/lib/debug')
-rw-r--r--src/core/lib/debug/trace.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/lib/debug/trace.cc b/src/core/lib/debug/trace.cc
index 304ee48a2f..5df2229aae 100644
--- a/src/core/lib/debug/trace.cc
+++ b/src/core/lib/debug/trace.cc
@@ -54,7 +54,7 @@ bool TraceFlag::Set(const char* name, bool enabled) {
LogAllTracers();
} else if (0 == strcmp(name, "refcount")) {
for (t = root_tracer_; t; t = t->next_tracer_) {
- if (strstr(t->name_, "refcount") != NULL) {
+ if (strstr(t->name_, "refcount") != nullptr) {
t->set_enabled(enabled);
}
}
@@ -93,7 +93,7 @@ static void add(const char* beg, const char* end, char*** ss, size_t* ns) {
static void split(const char* s, char*** ss, size_t* ns) {
const char* c = strchr(s, ',');
- if (c == NULL) {
+ if (c == nullptr) {
add(s, s + strlen(s), ss, ns);
} else {
add(s, c, ss, ns);
@@ -102,7 +102,7 @@ static void split(const char* s, char*** ss, size_t* ns) {
}
static void parse(const char* s) {
- char** strings = NULL;
+ char** strings = nullptr;
size_t nstrings = 0;
size_t i;
split(s, &strings, &nstrings);
@@ -123,7 +123,7 @@ static void parse(const char* s) {
void grpc_tracer_init(const char* env_var) {
char* e = gpr_getenv(env_var);
- if (e != NULL) {
+ if (e != nullptr) {
parse(e);
gpr_free(e);
}