diff options
author | a-romanov <a-romanov@yandex-team.ru> | 2022-02-10 16:48:11 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:48:11 +0300 |
commit | 0f4c5d1e8c0672bf0a1f2f2d8acac5ba24772435 (patch) | |
tree | b222e5ac2e2e98872661c51ccceee5da0d291e13 /util/memory | |
parent | aa2986a34bde73b2cdcea5080c4443b7cf2ba686 (diff) | |
download | ydb-0f4c5d1e8c0672bf0a1f2f2d8acac5ba24772435.tar.gz |
Restoring authorship annotation for <a-romanov@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/memory')
-rw-r--r-- | util/memory/pool.h | 4 | ||||
-rw-r--r-- | util/memory/tempbuf.cpp | 4 | ||||
-rw-r--r-- | util/memory/tempbuf_ut.cpp | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/util/memory/pool.h b/util/memory/pool.h index efc20f0fc5..13c8b6b9ed 100644 --- a/util/memory/pool.h +++ b/util/memory/pool.h @@ -12,7 +12,7 @@ #include <new> #include <string> -#include <utility> +#include <utility> /** * Memory pool implements a memory allocation scheme that is very fast, but @@ -191,7 +191,7 @@ public: template <typename T, typename... Args> inline T* New(Args&&... args) { - return new (Allocate<T>()) T(std::forward<Args>(args)...); + return new (Allocate<T>()) T(std::forward<Args>(args)...); } template <typename T> diff --git a/util/memory/tempbuf.cpp b/util/memory/tempbuf.cpp index 6c60ebaf71..09a2d0f140 100644 --- a/util/memory/tempbuf.cpp +++ b/util/memory/tempbuf.cpp @@ -7,7 +7,7 @@ #include <util/generic/intrlist.h> #include <util/generic/singleton.h> #include <util/generic/yexception.h> -#include <utility> +#include <utility> #include <util/thread/singleton.h> #ifndef TMP_BUF_LEN @@ -197,7 +197,7 @@ TTempBuf::TTempBuf(size_t len) TTempBuf::TTempBuf(const TTempBuf&) noexcept = default; TTempBuf::TTempBuf(TTempBuf&& b) noexcept - : Impl_(std::move(b.Impl_)) + : Impl_(std::move(b.Impl_)) { } diff --git a/util/memory/tempbuf_ut.cpp b/util/memory/tempbuf_ut.cpp index b4774b7b05..d6bcf9d546 100644 --- a/util/memory/tempbuf_ut.cpp +++ b/util/memory/tempbuf_ut.cpp @@ -1,6 +1,6 @@ #include "tempbuf.h" -#include <utility> +#include <utility> #include <library/cpp/testing/unittest/registar.h> @@ -71,7 +71,7 @@ void TTempBufTest::TestMoveCtor() { src.Proceed(10); - TTempBuf dst(std::move(src)); + TTempBuf dst(std::move(src)); UNIT_ASSERT(src.IsNull()); UNIT_ASSERT(!dst.IsNull()); |