diff options
author | stanly <stanly@yandex-team.ru> | 2022-02-10 16:46:49 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:49 +0300 |
commit | cde218e65dfef5ce03a48d641fd8f7913cf17b2d (patch) | |
tree | d3349caea4095825a55b5ba24fe758067b29ce6f /util/generic/ptr_ut.cpp | |
parent | 9f813499b4ef585cb3c2bb93de93ef003daf4fc4 (diff) | |
download | ydb-cde218e65dfef5ce03a48d641fd8f7913cf17b2d.tar.gz |
Restoring authorship annotation for <stanly@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/generic/ptr_ut.cpp')
-rw-r--r-- | util/generic/ptr_ut.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/util/generic/ptr_ut.cpp b/util/generic/ptr_ut.cpp index c2dcff23f6..c87d2e6374 100644 --- a/util/generic/ptr_ut.cpp +++ b/util/generic/ptr_ut.cpp @@ -708,7 +708,7 @@ void TPointerTest::TestMakeShared() { UNIT_ASSERT(state == OS_NOT_CREATED || state == OS_DESTROYED); } } - + template <class TPtr> void TestPtrComparison(const TPtr& ptr) { UNIT_ASSERT(ptr == ptr); @@ -719,15 +719,15 @@ void TestPtrComparison(const TPtr& ptr) { void TPointerTest::TestComparison() { THolder<A> ptr1(new A); - TAutoPtr<A> ptr2; - TSimpleSharedPtr<int> ptr3(new int(6)); - TIntrusivePtr<A> ptr4; + TAutoPtr<A> ptr2; + TSimpleSharedPtr<int> ptr3(new int(6)); + TIntrusivePtr<A> ptr4; TIntrusiveConstPtr<A> ptr5 = ptr4; - - UNIT_ASSERT(ptr1 != nullptr); - UNIT_ASSERT(ptr2 == nullptr); - UNIT_ASSERT(ptr3 != nullptr); - UNIT_ASSERT(ptr4 == nullptr); + + UNIT_ASSERT(ptr1 != nullptr); + UNIT_ASSERT(ptr2 == nullptr); + UNIT_ASSERT(ptr3 != nullptr); + UNIT_ASSERT(ptr4 == nullptr); UNIT_ASSERT(ptr5 == nullptr); TestPtrComparison(ptr1); @@ -735,7 +735,7 @@ void TPointerTest::TestComparison() { TestPtrComparison(ptr3); TestPtrComparison(ptr4); TestPtrComparison(ptr5); -} +} template <class T, class TRefCountedPtr> void TPointerTest::TestRefCountedPtrsInHashSetImpl() { |