TakeOwnership shouldn't be const.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
5274ba735c
commit
b3ab6dab59
|
@ -47,7 +47,7 @@ namespace ArbUt {
|
|||
inline T* GetValue() const noexcept { return _raw; }
|
||||
|
||||
/// @brief Get the raw underlying pointer.
|
||||
inline T* TakeOwnership() const noexcept {
|
||||
inline T* TakeOwnership() noexcept {
|
||||
auto raw = _raw;
|
||||
_raw = nullptr;
|
||||
return raw;
|
||||
|
|
|
@ -47,7 +47,7 @@ namespace ArbUt {
|
|||
inline T* operator->() const noexcept { return _raw; }
|
||||
|
||||
/// @brief Get the raw underlying pointer.
|
||||
inline T* TakeOwnership() const noexcept {
|
||||
inline T* TakeOwnership() noexcept {
|
||||
auto raw = _raw;
|
||||
_raw = nullptr;
|
||||
return raw;
|
||||
|
|
Loading…
Reference in New Issue