aboutsummaryrefslogtreecommitdiffstats
path: root/util/memory
diff options
context:
space:
mode:
authordanlark <danlark@yandex-team.ru>2022-02-10 16:46:08 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:08 +0300
commit3426a9bc7f169ae9da54cef557ad2a33f6e8eee0 (patch)
tree26154e1e9990f1bb4525d3e3fb5b6dac2c2c1da2 /util/memory
parentcb68f224c46a8ee52ac3fdd2a32534b8bb8dc134 (diff)
downloadydb-3426a9bc7f169ae9da54cef557ad2a33f6e8eee0.tar.gz
Restoring authorship annotation for <danlark@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/memory')
-rw-r--r--util/memory/blob.cpp2
-rw-r--r--util/memory/pool.h4
-rw-r--r--util/memory/segmented_string_pool.h4
3 files changed, 5 insertions, 5 deletions
diff --git a/util/memory/blob.cpp b/util/memory/blob.cpp
index 91da5cadca..d7de94fe86 100644
--- a/util/memory/blob.cpp
+++ b/util/memory/blob.cpp
@@ -395,7 +395,7 @@ TBlob ConstructFromString(S&& s) {
using TBase = TStringBlobBase<TCounter>;
auto base = MakeHolder<TBase>(std::forward<S>(s));
- TBlob ret(base->String().data(), base->String().size(), base.Get());
+ TBlob ret(base->String().data(), base->String().size(), base.Get());
Y_UNUSED(base.Release());
return ret;
diff --git a/util/memory/pool.h b/util/memory/pool.h
index 13c8b6b9ed..c906f6d208 100644
--- a/util/memory/pool.h
+++ b/util/memory/pool.h
@@ -225,10 +225,10 @@ public:
template <typename TChar>
inline TBasicStringBuf<TChar> AppendCString(const TBasicStringBuf<TChar>& buf) {
- TChar* ret = static_cast<TChar*>(Allocate((buf.size() + 1) * sizeof(TChar)));
+ TChar* ret = static_cast<TChar*>(Allocate((buf.size() + 1) * sizeof(TChar)));
std::char_traits<TChar>::copy(ret, buf.data(), buf.size());
- *(ret + buf.size()) = 0;
+ *(ret + buf.size()) = 0;
return TBasicStringBuf<TChar>(ret, buf.size());
}
diff --git a/util/memory/segmented_string_pool.h b/util/memory/segmented_string_pool.h
index a40aa408f5..4da0763afc 100644
--- a/util/memory/segmented_string_pool.h
+++ b/util/memory/segmented_string_pool.h
@@ -3,7 +3,7 @@
#include <util/system/align.h>
#include <util/system/yassert.h>
#include <util/system/defaults.h>
-#include <util/generic/noncopyable.h>
+#include <util/generic/noncopyable.h>
#include <util/generic/vector.h>
#include <util/generic/strbuf.h>
@@ -172,7 +172,7 @@ public:
return rv;
}
char* Append(const TStringBuf s) {
- return append(s.data(), s.size());
+ return append(s.data(), s.size());
}
void align_4() {
size_t t = (curseg->freepos + 3) & ~3;