X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Findex-allocator.cpp;fp=src%2Fcommon%2Findex-allocator.cpp;h=c0bb8a1c4188d19f7e99cdc341a6b0e165df4117;hp=c4f790ddbd729b4f7284f9bb8987801abb1b9f7f;hb=cd9adb8b829564212158943a0d279bb35322ab30;hpb=e665dfbce25215d5ec77ff03a279c7163b337db1 diff --git a/src/common/index-allocator.cpp b/src/common/index-allocator.cpp index c4f790ddb..c0bb8a1c4 100644 --- a/src/common/index-allocator.cpp +++ b/src/common/index-allocator.cpp @@ -29,7 +29,7 @@ struct lttng_index { struct lttng_index_allocator *lttng_index_allocator_create(uint64_t index_count) { - struct lttng_index_allocator *allocator = NULL; + struct lttng_index_allocator *allocator = nullptr; allocator = zmalloc(); if (!allocator) { @@ -82,7 +82,7 @@ end: enum lttng_index_allocator_status lttng_index_allocator_release(struct lttng_index_allocator *allocator, uint64_t idx) { - struct lttng_index *index = NULL; + struct lttng_index *index = nullptr; enum lttng_index_allocator_status status = LTTNG_INDEX_ALLOCATOR_STATUS_OK; LTTNG_ASSERT(idx < allocator->size); @@ -104,7 +104,7 @@ end: void lttng_index_allocator_destroy(struct lttng_index_allocator *allocator) { - struct lttng_index *index = NULL, *tmp_index = NULL; + struct lttng_index *index = nullptr, *tmp_index = nullptr; if (!allocator) { return;