TakeOwnership shouldn't be const.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -47,7 +47,7 @@ namespace ArbUt {
|
|||||||
inline T* GetValue() const noexcept { return _raw; }
|
inline T* GetValue() const noexcept { return _raw; }
|
||||||
|
|
||||||
/// @brief Get the raw underlying pointer.
|
/// @brief Get the raw underlying pointer.
|
||||||
inline T* TakeOwnership() const noexcept {
|
inline T* TakeOwnership() noexcept {
|
||||||
auto raw = _raw;
|
auto raw = _raw;
|
||||||
_raw = nullptr;
|
_raw = nullptr;
|
||||||
return raw;
|
return raw;
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ namespace ArbUt {
|
|||||||
inline T* operator->() const noexcept { return _raw; }
|
inline T* operator->() const noexcept { return _raw; }
|
||||||
|
|
||||||
/// @brief Get the raw underlying pointer.
|
/// @brief Get the raw underlying pointer.
|
||||||
inline T* TakeOwnership() const noexcept {
|
inline T* TakeOwnership() noexcept {
|
||||||
auto raw = _raw;
|
auto raw = _raw;
|
||||||
_raw = nullptr;
|
_raw = nullptr;
|
||||||
return raw;
|
return raw;
|
||||||
|
|||||||
Reference in New Issue
Block a user