diff options
author | Ilnur Khuziev <ilnur.khuziev@yandex.ru> | 2022-02-10 16:46:14 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:14 +0300 |
commit | 60040c91ffe701a84689b2c6310ff845e65cff42 (patch) | |
tree | 1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /util/generic/ptr.h | |
parent | 736dcd8ca259457a136f2f9f9168c44643914323 (diff) | |
download | ydb-60040c91ffe701a84689b2c6310ff845e65cff42.tar.gz |
Restoring authorship annotation for Ilnur Khuziev <ilnur.khuziev@yandex.ru>. Commit 2 of 2.
Diffstat (limited to 'util/generic/ptr.h')
-rw-r--r-- | util/generic/ptr.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/util/generic/ptr.h b/util/generic/ptr.h index 8a4fcc3da9..19db0e3ec5 100644 --- a/util/generic/ptr.h +++ b/util/generic/ptr.h @@ -185,7 +185,7 @@ public: return *this; } - inline T* Release() const noexcept Y_WARN_UNUSED_RESULT { + inline T* Release() const noexcept Y_WARN_UNUSED_RESULT { return this->DoRelease(T_); } @@ -280,7 +280,7 @@ public: Reset(nullptr); } - inline T* Release() noexcept Y_WARN_UNUSED_RESULT { + inline T* Release() noexcept Y_WARN_UNUSED_RESULT { return this->DoRelease(T_); } @@ -566,7 +566,7 @@ public: TIntrusivePtr(nullptr).Swap(*this); } - inline T* Release() const noexcept Y_WARN_UNUSED_RESULT { + inline T* Release() const noexcept Y_WARN_UNUSED_RESULT { T* res = T_; if (T_) { Ops::DecRef(T_); @@ -1011,7 +1011,7 @@ public: return *this; } - inline T* Release() noexcept Y_WARN_UNUSED_RESULT { + inline T* Release() noexcept Y_WARN_UNUSED_RESULT { return DoRelease(T_); } |