aboutsummaryrefslogtreecommitdiffstats
path: root/util
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 /util
parent10e64fb65ffcbbd403bfae88e53b9bd7a46466f2 (diff)
downloadydb-04370768250bba4a2409c969f796f51450756156.tar.gz
Restoring authorship annotation for <daga@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util')
-rw-r--r--util/generic/buffer.h4
-rw-r--r--util/generic/string.h4
-rw-r--r--util/memory/tempbuf.h2
3 files changed, 5 insertions, 5 deletions
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;