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 | |
parent | 5869816f52682d8febca3791efc951b018a6fc13 (diff) | |
download | ydb-10e64fb65ffcbbd403bfae88e53b9bd7a46466f2.tar.gz |
Restoring authorship annotation for <daga@yandex-team.ru>. Commit 1 of 2.
-rw-r--r-- | library/cpp/getopt/small/opt2.cpp | 2 | ||||
-rw-r--r-- | util/generic/buffer.h | 4 | ||||
-rw-r--r-- | util/generic/string.h | 4 | ||||
-rw-r--r-- | util/memory/tempbuf.h | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/library/cpp/getopt/small/opt2.cpp b/library/cpp/getopt/small/opt2.cpp index 0cdc774e78..a309d35c47 100644 --- a/library/cpp/getopt/small/opt2.cpp +++ b/library/cpp/getopt/small/opt2.cpp @@ -17,7 +17,7 @@ void Opt2::Clear() { void Opt2::Init(int argc, char* const* argv, const char* optspec, IntRange free_args_num, const char* long_alias) { Clear(); - Argc = argc; + Argc = argc; Argv = argv; HasErrors = false, BadPosCount = false, UnknownOption = 0, OptionMissingArg = 0; UnknownLongOption = nullptr; 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; |