aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/json
diff options
context:
space:
mode:
authorGravatar ncteisen <ncteisen@gmail.com>2018-01-03 21:40:45 -0800
committerGravatar ncteisen <ncteisen@gmail.com>2018-01-03 21:40:45 -0800
commite78bd519ca433cd4945da3a6c77284a11cca8bb6 (patch)
tree2067beff5b035ddf21004113792183e1ecd76529 /src/core/lib/json
parent9be168be0c36f588ce2bde923999d66375c0a030 (diff)
Clangify my stale code
Diffstat (limited to 'src/core/lib/json')
-rw-r--r--src/core/lib/json/json.cc8
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;