TakeOwnership shouldn't be const.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2021-03-27 12:23:31 +01:00
parent 5274ba735c
commit b3ab6dab59
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
2 changed files with 2 additions and 2 deletions

View File

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

View File

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