clang-tidy: add Chrome-inspired checks
[lttng-tools.git] / src / common / fd-handle.cpp
index 6bc1e9b5246e4ab3d6a7bfa0ef342e9c94edf065..6cf382757cb01cd9f2792b17b1da81375482681e 100644 (file)
@@ -34,7 +34,7 @@ static void fd_handle_release(struct urcu_ref *ref)
 
 struct fd_handle *fd_handle_create(int fd)
 {
-       struct fd_handle *handle = NULL;
+       struct fd_handle *handle = nullptr;
 
        if (fd < 0) {
                ERR("Attempted to create an fd_handle from an invalid file descriptor: fd = %d",
@@ -81,7 +81,7 @@ int fd_handle_get_fd(struct fd_handle *handle)
 
 struct fd_handle *fd_handle_copy(const struct fd_handle *handle)
 {
-       struct fd_handle *new_handle = NULL;
+       struct fd_handle *new_handle = nullptr;
        const int new_fd = dup(handle->fd);
 
        if (new_fd < 0) {
This page took 0.023416 seconds and 4 git commands to generate.