cmUVHandlePtr: Conversions to raw pointers are const

This commit is contained in:
Brad King
2023-10-26 17:08:55 -04:00
parent 6f8532fbfa
commit cd2894a089
2 changed files with 4 additions and 4 deletions

View File

@@ -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());
}

View File

@@ -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;