diff options
| author | leo <[email protected]> | 2022-02-10 16:46:40 +0300 |
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:46:40 +0300 |
| commit | 980edcd3304699edf9d4e4d6a656e585028e2a72 (patch) | |
| tree | 139f47f3911484ae9af0eb347b1a88bd6c4bb35f /util/generic/ptr.h | |
| parent | b036a557f285146e5e35d4213e29a094ab907bcf (diff) | |
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'util/generic/ptr.h')
| -rw-r--r-- | util/generic/ptr.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/util/generic/ptr.h b/util/generic/ptr.h index 19db0e3ec55..355ea932f8a 100644 --- a/util/generic/ptr.h +++ b/util/generic/ptr.h @@ -398,15 +398,15 @@ public: Y_ASSERT(resultCount >= 0); (void)resultCount; } - + TRefCounted(const TRefCounted&) : Counter_(0) { } - + void operator=(const TRefCounted&) { } - + private: C Counter_; }; @@ -459,10 +459,10 @@ public: t->UnRef(); } - + static inline void DecRef(T* t) noexcept { Y_ASSERT(t); - + t->DecRef(); } @@ -571,10 +571,10 @@ public: if (T_) { Ops::DecRef(T_); T_ = nullptr; - } + } return res; } - + inline long RefCount() const noexcept { return T_ ? Ops::RefCount(T_) : 0; } |
