diff options
author | Brad King <brad.king@kitware.com> | 2023-10-26 21:08:55 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-11-17 13:50:53 (GMT) |
commit | cd2894a089b4321a1ce576b1fec103a587c72324 (patch) | |
tree | 0c86d178df1d762e194f63b1fa40d1dd63a5ed1f /Source | |
parent | 6f8532fbfac3912fcb0e8729d549f2bfb045c64e (diff) | |
download | CMake-cd2894a089b4321a1ce576b1fec103a587c72324.zip CMake-cd2894a089b4321a1ce576b1fec103a587c72324.tar.gz CMake-cd2894a089b4321a1ce576b1fec103a587c72324.tar.bz2 |
cmUVHandlePtr: Conversions to raw pointers are const
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmUVHandlePtr.cxx | 4 | ||||
-rw-r--r-- | 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_<T>::reset() } template <typename T> -uv_handle_ptr_base_<T>::operator uv_handle_t*() +uv_handle_ptr_base_<T>::operator uv_handle_t*() const { return reinterpret_cast<uv_handle_t*>(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; |