diff options
author | gulin <gulin@yandex-team.ru> | 2022-02-10 16:47:32 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:32 +0300 |
commit | 7199613d295246a07c2f7b331fbb3128936039dc (patch) | |
tree | c0748b5dcbade83af788c0abfa89c0383d6b779c /util/generic/ptr.h | |
parent | c807aae441c17fc7f577c35757a4b6e0bd909802 (diff) | |
download | ydb-7199613d295246a07c2f7b331fbb3128936039dc.tar.gz |
Restoring authorship annotation for <gulin@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/generic/ptr.h')
-rw-r--r-- | util/generic/ptr.h | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/util/generic/ptr.h b/util/generic/ptr.h index 6d17160a4b..19db0e3ec5 100644 --- a/util/generic/ptr.h +++ b/util/generic/ptr.h @@ -1124,22 +1124,22 @@ template <class T> class TPtrArg { T* Ptr; -public: +public: TPtrArg(T* p) - : Ptr(p) - { - } + : Ptr(p) + { + } TPtrArg(const TIntrusivePtr<T>& p) - : Ptr(p.Get()) - { - } - operator T*() const { - return Ptr; - } - T* operator->() const { - return Ptr; - } - T* Get() const { - return Ptr; - } -}; + : Ptr(p.Get()) + { + } + operator T*() const { + return Ptr; + } + T* operator->() const { + return Ptr; + } + T* Get() const { + return Ptr; + } +}; |