X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Flib%2Flttng-ctl%2Fdestruction-handle.cpp;fp=src%2Flib%2Flttng-ctl%2Fdestruction-handle.cpp;h=34f58f7e01187afc2ae5ab1ad326326197abf009;hp=d77554a588fb58da04a2db7e066b3c95dedffff0;hb=cd9adb8b829564212158943a0d279bb35322ab30;hpb=e665dfbce25215d5ec77ff03a279c7163b337db1 diff --git a/src/lib/lttng-ctl/destruction-handle.cpp b/src/lib/lttng-ctl/destruction-handle.cpp index d77554a58..34f58f7e0 100644 --- a/src/lib/lttng-ctl/destruction-handle.cpp +++ b/src/lib/lttng-ctl/destruction-handle.cpp @@ -90,7 +90,7 @@ end: return handle; error: lttng_destruction_handle_destroy(handle); - return NULL; + return nullptr; } static int handle_state_transition(struct lttng_destruction_handle *handle) @@ -377,7 +377,7 @@ enum lttng_error_code lttng_destroy_session_ext(const char *session_name, .fd_count = 0, }; int sessiond_socket = -1; - struct lttng_destruction_handle *handle = NULL; + struct lttng_destruction_handle *handle = nullptr; if (!session_name) { ret_code = LTTNG_ERR_INVALID; @@ -414,7 +414,7 @@ enum lttng_error_code lttng_destroy_session_ext(const char *session_name, /* Transfer the handle to the caller. */ if (_handle) { *_handle = handle; - handle = NULL; + handle = nullptr; } error: if (sessiond_socket >= 0) {