diff options
author | daga <daga@yandex-team.ru> | 2022-02-10 16:50:55 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:55 +0300 |
commit | 10e64fb65ffcbbd403bfae88e53b9bd7a46466f2 (patch) | |
tree | e70c9de97e6ad363f9e1d2505b7159537ac69a92 /util | |
parent | 5869816f52682d8febca3791efc951b018a6fc13 (diff) | |
download | ydb-10e64fb65ffcbbd403bfae88e53b9bd7a46466f2.tar.gz |
Restoring authorship annotation for <daga@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util')
-rw-r--r-- | util/generic/buffer.h | 4 | ||||
-rw-r--r-- | util/generic/string.h | 4 | ||||
-rw-r--r-- | util/memory/tempbuf.h | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/util/generic/buffer.h b/util/generic/buffer.h index 9576467404..227eac927d 100644 --- a/util/generic/buffer.h +++ b/util/generic/buffer.h @@ -101,7 +101,7 @@ public: inline void Append(char ch) { if (Len_ == Pos_) { Reserve(Len_ + 1); - } + } *(Data() + Pos_++) = ch; } @@ -142,7 +142,7 @@ public: inline void Reserve(size_t len) { if (len > Len_) { DoReserve(len); - } + } } inline void ReserveExactNeverCallMeInSaneCode(size_t len) { diff --git a/util/generic/string.h b/util/generic/string.h index 8cd8aa6917..a23e712f28 100644 --- a/util/generic/string.h +++ b/util/generic/string.h @@ -803,8 +803,8 @@ public: inline void push_back(TCharType c) { // TODO append(c); - } - + } + template <class T> TBasicString& operator+=(const T& s) { return append(s); diff --git a/util/memory/tempbuf.h b/util/memory/tempbuf.h index 334670eb1e..8f38840f77 100644 --- a/util/memory/tempbuf.h +++ b/util/memory/tempbuf.h @@ -65,7 +65,7 @@ private: static constexpr size_t TypedSize(const size_t size) noexcept { return size / sizeof(T); } - + public: TTempArray() = default; |