aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorssmike <ssmike@yandex-team.ru>2022-02-10 16:52:02 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:52:02 +0300
commitcfa174d06a65d4408b22b58d3829393e97020695 (patch)
treeab7fbbf3253d4c0e2793218f09378908beb025fb
parent9e67c55ced4ba4ae2cde004ccb91f1f1573ecfa9 (diff)
downloadydb-cfa174d06a65d4408b22b58d3829393e97020695.tar.gz
Restoring authorship annotation for <ssmike@yandex-team.ru>. Commit 2 of 2.
-rw-r--r--util/memory/blob.cpp2
-rw-r--r--util/memory/blob.h20
-rw-r--r--util/memory/blob_ut.cpp4
-rw-r--r--util/stream/str.h2
4 files changed, 14 insertions, 14 deletions
diff --git a/util/memory/blob.cpp b/util/memory/blob.cpp
index a32b3bafd5..91da5cadca 100644
--- a/util/memory/blob.cpp
+++ b/util/memory/blob.cpp
@@ -193,7 +193,7 @@ TBlob TBlob::Copy(const void* data, size_t length) {
}
TBlob TBlob::NoCopy(const void* data, size_t length) {
- return TBlob(data, length, nullptr);
+ return TBlob(data, length, nullptr);
}
template <class TCounter>
diff --git a/util/memory/blob.h b/util/memory/blob.h
index 6f26cfe55a..20c02a68df 100644
--- a/util/memory/blob.h
+++ b/util/memory/blob.h
@@ -63,10 +63,10 @@ public:
/**
* Constructs a null blob (data array points to nullptr).
*/
- TBlob() noexcept
- : S_(nullptr, 0, nullptr)
- {
- }
+ TBlob() noexcept
+ : S_(nullptr, 0, nullptr)
+ {
+ }
inline TBlob(const TBlob& r) noexcept
: S_(r.S_)
@@ -308,15 +308,15 @@ public:
private:
inline void Ref() noexcept {
- if (S_.Base) {
- S_.Base->Ref();
- }
+ if (S_.Base) {
+ S_.Base->Ref();
+ }
}
inline void UnRef() noexcept {
- if (S_.Base) {
- S_.Base->UnRef();
- }
+ if (S_.Base) {
+ S_.Base->UnRef();
+ }
}
private:
diff --git a/util/memory/blob_ut.cpp b/util/memory/blob_ut.cpp
index 6150a583b1..023f9a0487 100644
--- a/util/memory/blob_ut.cpp
+++ b/util/memory/blob_ut.cpp
@@ -3,7 +3,7 @@
#include <library/cpp/testing/unittest/registar.h>
#include <util/system/tempfile.h>
-#include <util/folder/path.h>
+#include <util/folder/path.h>
#include <util/stream/output.h>
#include <util/stream/file.h>
#include <util/generic/buffer.h>
@@ -70,7 +70,7 @@ Y_UNIT_TEST_SUITE(TBlobTest) {
testMode(TBlob::PrechargedFromFile(path));
testMode(TBlob::LockedFromFile(path));
}
-
+
Y_UNIT_TEST(TestEmptyLockedFiles) {
TString path = MakeTempName();
TFsPath(path).Touch();
diff --git a/util/stream/str.h b/util/stream/str.h
index 415e8f5fe3..028bd572c0 100644
--- a/util/stream/str.h
+++ b/util/stream/str.h
@@ -94,7 +94,7 @@ public:
DoSwap(S_, s.S_);
}
-protected:
+protected:
size_t DoNext(void** ptr) override;
void DoUndo(size_t len) override;
void DoWrite(const void* buf, size_t len) override;