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 | c78b06a63de7beec995c1007bc5332bdf3d75b69 (patch) | |
tree | 729de992758f40b85278d4abaad655be5dd68dbc /util/draft | |
parent | 95ab23a39b5482a434361566cabdd5b0a433cb43 (diff) | |
download | ydb-c78b06a63de7beec995c1007bc5332bdf3d75b69.tar.gz |
Restoring authorship annotation for <tender-bum@yandex-team.ru>. Commit 1 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 1c62055bd9..942f4b718b 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 f64393860a..9f3b9a919c 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); } |