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

This commit is contained in:
Deukhoofd committed 2021-03-27 12:23:31 +01:00
1 parent 5274ba735c
commit b3ab6dab59
2 files changed
+2 -2

No files matched your search

+1 -1
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;
+1 -1
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;