diff options
author | tender-bum <tender-bum@yandex-team.ru> | 2022-02-10 16:50:01 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:01 +0300 |
commit | 4aef354b224559d2b031487a10d4f5cc6e82e95a (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /util/draft | |
parent | c78b06a63de7beec995c1007bc5332bdf3d75b69 (diff) | |
download | ydb-4aef354b224559d2b031487a10d4f5cc6e82e95a.tar.gz |
Restoring authorship annotation for <tender-bum@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/draft')
-rw-r--r-- | util/draft/holder_vector.h | 6 | ||||
-rw-r--r-- | util/draft/holder_vector_ut.cpp | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/util/draft/holder_vector.h b/util/draft/holder_vector.h index 942f4b718b..1c62055bd9 100644 --- a/util/draft/holder_vector.h +++ b/util/draft/holder_vector.h @@ -41,15 +41,15 @@ public: } } - void PushBack(std::unique_ptr<T> t) { + void PushBack(std::unique_ptr<T> t) { PushBack(t.release()); } - void PushBack(THolder<T> t) { + void PushBack(THolder<T> t) { PushBack(t.Release()); } - void Reset(size_t i, THolder<T> t) { + void Reset(size_t i, THolder<T> t) { T* current = (*this)[i]; if (current) { Y_ASSERT(current != t.Get()); diff --git a/util/draft/holder_vector_ut.cpp b/util/draft/holder_vector_ut.cpp index 9f3b9a919c..f64393860a 100644 --- a/util/draft/holder_vector_ut.cpp +++ b/util/draft/holder_vector_ut.cpp @@ -45,7 +45,7 @@ Y_UNIT_TEST_SUITE(THolderVectorTest) { ints.Resize(2); THolder<int> holder(new int(1)); - ints.Reset(0, std::move(holder)); + ints.Reset(0, std::move(holder)); UNIT_ASSERT_VALUES_EQUAL(*ints[0], 1); UNIT_ASSERT(!holder); } |