From ec264ff07c080309546dd8988635bd68ef531151 Mon Sep 17 00:00:00 2001 From: gammasoft71 Date: Sun, 10 Dec 2023 17:27:46 +0100 Subject: [PATCH] Using auto --- .../src/xtd/native/linux/unnamed_event_wait_handle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xtd.core.native.linux/src/xtd/native/linux/unnamed_event_wait_handle.cpp b/src/xtd.core.native.linux/src/xtd/native/linux/unnamed_event_wait_handle.cpp index ec658207c54..3e36685dc98 100644 --- a/src/xtd.core.native.linux/src/xtd/native/linux/unnamed_event_wait_handle.cpp +++ b/src/xtd.core.native.linux/src/xtd/native/linux/unnamed_event_wait_handle.cpp @@ -6,7 +6,7 @@ using namespace xtd::native; intmax_t unnamed_event_wait_handle::create(bool initial_state, bool manual_reset) { - sem_t* semaphore = new sem_t; + auto semaphore = new sem_t; if (sem_init(semaphore, 0, initial_state ? 1 : 0) != 0) return reinterpret_cast(SEM_FAILED); return reinterpret_cast(semaphore); }