aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/messagebus/nondestroying_holder.h
diff options
context:
space:
mode:
authorVlad Yaroslavlev <vladon@vladon.com>2022-02-10 16:46:25 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:25 +0300
commit344ea37b4a345701ab0e67de2266a1c1bd7baf2d (patch)
tree1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /library/cpp/messagebus/nondestroying_holder.h
parent706b83ed7de5a473436620367af31fc0ceecde07 (diff)
downloadydb-344ea37b4a345701ab0e67de2266a1c1bd7baf2d.tar.gz
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/messagebus/nondestroying_holder.h')
-rw-r--r--library/cpp/messagebus/nondestroying_holder.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/library/cpp/messagebus/nondestroying_holder.h b/library/cpp/messagebus/nondestroying_holder.h
index af8d2ac6a3..f4725d696f 100644
--- a/library/cpp/messagebus/nondestroying_holder.h
+++ b/library/cpp/messagebus/nondestroying_holder.h
@@ -5,12 +5,12 @@
template <typename T>
class TNonDestroyingHolder: public THolder<T> {
public:
- TNonDestroyingHolder(T* t = nullptr) noexcept
+ TNonDestroyingHolder(T* t = nullptr) noexcept
: THolder<T>(t)
{
}
- TNonDestroyingHolder(TAutoPtr<T> t) noexcept
+ TNonDestroyingHolder(TAutoPtr<T> t) noexcept
: THolder<T>(t)
{
}
@@ -23,17 +23,17 @@ public:
template <class T>
class TNonDestroyingAutoPtr: public TAutoPtr<T> {
public:
- inline TNonDestroyingAutoPtr(T* t = 0) noexcept
+ inline TNonDestroyingAutoPtr(T* t = 0) noexcept
: TAutoPtr<T>(t)
{
}
- inline TNonDestroyingAutoPtr(const TAutoPtr<T>& t) noexcept
+ inline TNonDestroyingAutoPtr(const TAutoPtr<T>& t) noexcept
: TAutoPtr<T>(t.Release())
{
}
- inline ~TNonDestroyingAutoPtr() {
+ inline ~TNonDestroyingAutoPtr() {
Y_VERIFY(!*this, "stored object must be explicitly released");
}
};