From cd2894a089b4321a1ce576b1fec103a587c72324 Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 26 Oct 2023 17:08:55 -0400 Subject: cmUVHandlePtr: Conversions to raw pointers are const --- Source/cmUVHandlePtr.cxx | 4 ++-- Source/cmUVHandlePtr.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/cmUVHandlePtr.cxx b/Source/cmUVHandlePtr.cxx index 34e6a70..fd109a5 100644 --- a/Source/cmUVHandlePtr.cxx +++ b/Source/cmUVHandlePtr.cxx @@ -44,7 +44,7 @@ void uv_loop_ptr::reset() this->loop.reset(); } -uv_loop_ptr::operator uv_loop_t*() +uv_loop_ptr::operator uv_loop_t*() const { return this->loop.get(); } @@ -103,7 +103,7 @@ void uv_handle_ptr_base_::reset() } template -uv_handle_ptr_base_::operator uv_handle_t*() +uv_handle_ptr_base_::operator uv_handle_t*() const { return reinterpret_cast(this->handle.get()); } diff --git a/Source/cmUVHandlePtr.h b/Source/cmUVHandlePtr.h index 027d690..afb7658 100644 --- a/Source/cmUVHandlePtr.h +++ b/Source/cmUVHandlePtr.h @@ -61,7 +61,7 @@ public: * Allow less verbose calling of uv_loop_* functions * @return reinterpreted handle */ - operator uv_loop_t*(); + operator uv_loop_t*() const; uv_loop_t* get() const; uv_loop_t* operator->() const noexcept; @@ -139,7 +139,7 @@ public: * Allow less verbose calling of uv_handle_* functions * @return reinterpreted handle */ - operator uv_handle_t*(); + operator uv_handle_t*() const; T* get() const; T* operator->() const noexcept; -- cgit v0.12