mirror of
https://github.com/Kitware/CMake.git
synced 2025-12-30 18:29:37 -06:00
cmUVHandlePtr: Conversions to raw pointers are const
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user