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
commit9e67c55ced4ba4ae2cde004ccb91f1f1573ecfa9 (patch)
tree5097e23db7eddaeb52718e15908310216b125cb8
parentbab6bea2cd46463bec931057fae2181f02d211d2 (diff)
downloadydb-9e67c55ced4ba4ae2cde004ccb91f1f1573ecfa9.tar.gz
Restoring authorship annotation for <ssmike@yandex-team.ru>. Commit 1 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 91da5cadca..a32b3bafd5 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 20c02a68df..6f26cfe55a 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 023f9a0487..6150a583b1 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 028bd572c0..415e8f5fe3 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;