diff options
author | ncteisen <ncteisen@gmail.com> | 2018-01-03 21:40:45 -0800 |
---|---|---|
committer | ncteisen <ncteisen@gmail.com> | 2018-01-03 21:40:45 -0800 |
commit | e78bd519ca433cd4945da3a6c77284a11cca8bb6 (patch) | |
tree | 2067beff5b035ddf21004113792183e1ecd76529 /src/core/lib/json | |
parent | 9be168be0c36f588ce2bde923999d66375c0a030 (diff) |
Clangify my stale code
Diffstat (limited to 'src/core/lib/json')
-rw-r--r-- | src/core/lib/json/json.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/lib/json/json.cc b/src/core/lib/json/json.cc index 2171e69455..0b84a38199 100644 --- a/src/core/lib/json/json.cc +++ b/src/core/lib/json/json.cc @@ -55,16 +55,16 @@ void grpc_json_destroy(grpc_json* json) { grpc_json* grpc_json_link_child(grpc_json* parent, grpc_json* child, grpc_json* sibling) { // first child case. - if (parent->child == NULL) { - GPR_ASSERT(sibling == NULL); + if (parent->child == nullptr) { + GPR_ASSERT(sibling == nullptr); parent->child = child; return child; } - if (sibling == NULL) { + if (sibling == nullptr) { sibling = parent->child; } // always find the right most sibling. - while (sibling->next != NULL) { + while (sibling->next != nullptr) { sibling = sibling->next; } sibling->next = child; |