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/ysafeptr.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/ysafeptr.h')
-rw-r--r-- | util/ysafeptr.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/util/ysafeptr.h b/util/ysafeptr.h index af7dfd4bed..430563af67 100644 --- a/util/ysafeptr.h +++ b/util/ysafeptr.h @@ -283,7 +283,7 @@ protected: public: TPtrBase() - : ptr(nullptr) + : ptr(nullptr) { } TPtrBase(TUserObj* _ptr) @@ -306,7 +306,7 @@ public: TUserObj* Extract() { TUserObj* pRes = ptr; DecRef(ptr); - ptr = nullptr; + ptr = nullptr; return pRes; } @@ -341,7 +341,7 @@ public: //////////////////////////////////////////////////////////////////////////////////////////////////// template <class T> inline bool IsValid(T* p) { - return p != nullptr && !CastToObjectBase(p)->IsRefInvalid(); + return p != nullptr && !CastToObjectBase(p)->IsRefInvalid(); } template <class T, class TRef> inline bool IsValid(const TPtrBase<T, TRef>& p) { |