diff options
author | orivej <orivej@yandex-team.ru> | 2022-02-10 16:45:01 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:01 +0300 |
commit | 2d37894b1b037cf24231090eda8589bbb44fb6fc (patch) | |
tree | be835aa92c6248212e705f25388ebafcf84bc7a1 /util/memory | |
parent | 718c552901d703c502ccbefdfc3c9028d608b947 (diff) | |
download | ydb-2d37894b1b037cf24231090eda8589bbb44fb6fc.tar.gz |
Restoring authorship annotation for <orivej@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/memory')
-rw-r--r-- | util/memory/pool.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/util/memory/pool.h b/util/memory/pool.h index bc492f2ffd..13c8b6b9ed 100644 --- a/util/memory/pool.h +++ b/util/memory/pool.h @@ -9,9 +9,9 @@ #include <util/generic/intrlist.h> #include <util/generic/strbuf.h> #include <util/generic/singleton.h> - + #include <new> -#include <string> +#include <string> #include <utility> /** @@ -207,14 +207,14 @@ public: template <typename TChar> inline TChar* Append(const TChar* str) { - return Append(str, std::char_traits<TChar>::length(str) + 1); // include terminating zero byte + return Append(str, std::char_traits<TChar>::length(str) + 1); // include terminating zero byte } template <typename TChar> inline TChar* Append(const TChar* str, size_t len) { TChar* ret = AllocateArray<TChar>(len); - std::char_traits<TChar>::copy(ret, str, len); + std::char_traits<TChar>::copy(ret, str, len); return ret; } @@ -227,7 +227,7 @@ public: inline TBasicStringBuf<TChar> AppendCString(const TBasicStringBuf<TChar>& buf) { TChar* ret = static_cast<TChar*>(Allocate((buf.size() + 1) * sizeof(TChar))); - std::char_traits<TChar>::copy(ret, buf.data(), buf.size()); + std::char_traits<TChar>::copy(ret, buf.data(), buf.size()); *(ret + buf.size()) = 0; return TBasicStringBuf<TChar>(ret, buf.size()); } |