diff options
author | ermolovd <ermolovd@yandex-team.ru> | 2022-02-10 16:47:53 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:53 +0300 |
commit | b91bcef7c99a119b0846479ef71bfab4beec72ca (patch) | |
tree | be118d54d12a61bc4812ceb0a266a170a2fa3bc9 /library/cpp/yt/string/string_builder-inl.h | |
parent | f421873774cf0b71743afbe5f6677861e66601ea (diff) | |
download | ydb-b91bcef7c99a119b0846479ef71bfab4beec72ca.tar.gz |
Restoring authorship annotation for <ermolovd@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/yt/string/string_builder-inl.h')
-rw-r--r-- | library/cpp/yt/string/string_builder-inl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/cpp/yt/string/string_builder-inl.h b/library/cpp/yt/string/string_builder-inl.h index 151fcabf7f..96b85dadc4 100644 --- a/library/cpp/yt/string/string_builder-inl.h +++ b/library/cpp/yt/string/string_builder-inl.h @@ -12,7 +12,7 @@ namespace NYT { inline char* TStringBuilderBase::Preallocate(size_t size) { - if (Y_UNLIKELY(End_ - Current_ < static_cast<ssize_t>(size))) { + if (Y_UNLIKELY(End_ - Current_ < static_cast<ssize_t>(size))) { size_t length = GetLength(); auto newLength = std::max(length + size, MinBufferLength); DoPreallocate(newLength); @@ -69,7 +69,7 @@ inline void TStringBuilderBase::AppendString(const char* str) inline void TStringBuilderBase::Reset() { - Begin_ = Current_ = End_ = nullptr; + Begin_ = Current_ = End_ = nullptr; DoReset(); } |