diff options
author | axc <[email protected]> | 2022-02-10 16:47:35 +0300 |
---|---|---|
committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:47:35 +0300 |
commit | 1f5217043ad70f25dc35e75b3bd261a1e23d045e (patch) | |
tree | 11bf68c1fa5272d3d3446cbd5a0ff96ed9d75788 /util/generic/ptr_ut.cpp | |
parent | 69505a07cbb096113e85aa02e7d136cac4aa826c (diff) |
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'util/generic/ptr_ut.cpp')
-rw-r--r-- | util/generic/ptr_ut.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/util/generic/ptr_ut.cpp b/util/generic/ptr_ut.cpp index c2dcff23f6b..ef98c7a5dc1 100644 --- a/util/generic/ptr_ut.cpp +++ b/util/generic/ptr_ut.cpp @@ -104,7 +104,7 @@ public: { ++cnt; } - + inline ~A() { --cnt; } @@ -248,7 +248,7 @@ void TPointerTest::TestTrulePtr() { UNIT_ASSERT_VALUES_EQUAL(cnt, 0); } - + void TPointerTest::TestAutoToHolder() { { TAutoPtr<A> a1(MakeA()); @@ -280,19 +280,19 @@ void TPointerTest::TestAutoToHolder() { void TPointerTest::TestCopyPtr() { TCopyPtr<A> a1(MakeA()); - { + { TCopyPtr<A> a2(MakeA()); - TCopyPtr<A> a3 = a2; + TCopyPtr<A> a3 = a2; UNIT_ASSERT_VALUES_EQUAL(cnt, 3); - - a1 = a2; - a2 = a3; - } + + a1 = a2; + a2 = a3; + } UNIT_ASSERT_VALUES_EQUAL(cnt, 1); - a1.Destroy(); - + a1.Destroy(); + UNIT_ASSERT_VALUES_EQUAL(cnt, 0); -} +} class TOp: public TSimpleRefCount<TOp>, public TNonCopyable { public: |