aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordaga <daga@yandex-team.ru>2022-02-10 16:50:55 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:50:55 +0300
commit04370768250bba4a2409c969f796f51450756156 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8
parent10e64fb65ffcbbd403bfae88e53b9bd7a46466f2 (diff)
downloadydb-04370768250bba4a2409c969f796f51450756156.tar.gz
Restoring authorship annotation for <daga@yandex-team.ru>. Commit 2 of 2.
-rw-r--r--library/cpp/getopt/small/opt2.cpp2
-rw-r--r--util/generic/buffer.h4
-rw-r--r--util/generic/string.h4
-rw-r--r--util/memory/tempbuf.h2
4 files changed, 6 insertions, 6 deletions
diff --git a/library/cpp/getopt/small/opt2.cpp b/library/cpp/getopt/small/opt2.cpp
index a309d35c47..0cdc774e78 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 227eac927d..9576467404 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 a23e712f28..8cd8aa6917 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 8f38840f77..334670eb1e 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;