diff options
author | agorodilov <agorodilov@yandex-team.ru> | 2022-02-10 16:47:09 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:09 +0300 |
commit | 7a4979e6211c3e78c7f9041d4a9e5d3405343c36 (patch) | |
tree | 9e9943579e5a14679af7cd2cda3c36d8c0b775d3 /util/generic/ptr.h | |
parent | 676340c42e269f3070f194d160f42a83a10568d4 (diff) | |
download | ydb-7a4979e6211c3e78c7f9041d4a9e5d3405343c36.tar.gz |
Restoring authorship annotation for <agorodilov@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/generic/ptr.h')
-rw-r--r-- | util/generic/ptr.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/util/generic/ptr.h b/util/generic/ptr.h index 19db0e3ec5..21b2e3cecb 100644 --- a/util/generic/ptr.h +++ b/util/generic/ptr.h @@ -201,7 +201,7 @@ public: } inline void Destroy() noexcept { - Reset(nullptr); + Reset(nullptr); } inline void Swap(TAutoPtr& r) noexcept { @@ -363,7 +363,7 @@ public: { } - inline ~TRefCounted() = default; + inline ~TRefCounted() = default; inline void Ref(TAtomicBase d) noexcept { auto resultCount = Counter_.Add(d); @@ -563,14 +563,14 @@ public: } inline void Drop() noexcept { - TIntrusivePtr(nullptr).Swap(*this); + TIntrusivePtr(nullptr).Swap(*this); } inline T* Release() const noexcept Y_WARN_UNUSED_RESULT { T* res = T_; if (T_) { Ops::DecRef(T_); - T_ = nullptr; + T_ = nullptr; } return res; } @@ -745,7 +745,7 @@ public: InitStaticOps(); } - inline ~TSimpleIntrusiveOps() = default; + inline ~TSimpleIntrusiveOps() = default; static inline void Ref(T* t) noexcept { Ref_(t); @@ -1060,7 +1060,7 @@ class TCowPtr: public TPointerBase<TCowPtr<TPtr, TCopy>, const typename TPtr::TV using T = typename TPtr::TValueType; public: - inline TCowPtr() = default; + inline TCowPtr() = default; inline TCowPtr(const TPtr& p) : T_(p) |