aboutsummaryrefslogtreecommitdiffstats
path: root/util/memory
diff options
context:
space:
mode:
authortrofimenkov <trofimenkov@yandex-team.ru>2022-02-10 16:49:30 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:30 +0300
commit30cebc2cfa79af3b577760a113e203a79450e6b6 (patch)
tree49327bf3c28fab534b04b312a39179e70f7c2763 /util/memory
parenta2d2743094c8d255cda4011b317235874db4d01c (diff)
downloadydb-30cebc2cfa79af3b577760a113e203a79450e6b6.tar.gz
Restoring authorship annotation for <trofimenkov@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/memory')
-rw-r--r--util/memory/tempbuf.cpp12
-rw-r--r--util/memory/tempbuf_ut.cpp30
2 files changed, 21 insertions, 21 deletions
diff --git a/util/memory/tempbuf.cpp b/util/memory/tempbuf.cpp
index 09a2d0f140..886c57a5a2 100644
--- a/util/memory/tempbuf.cpp
+++ b/util/memory/tempbuf.cpp
@@ -198,9 +198,9 @@ TTempBuf::TTempBuf(const TTempBuf&) noexcept = default;
TTempBuf::TTempBuf(TTempBuf&& b) noexcept
: Impl_(std::move(b.Impl_))
-{
-}
-
+{
+}
+
TTempBuf::~TTempBuf() = default;
TTempBuf& TTempBuf::operator=(const TTempBuf& b) noexcept {
@@ -271,9 +271,9 @@ void TTempBuf::Append(const void* data, size_t len) {
}
bool TTempBuf::IsNull() const noexcept {
- return !Impl_;
-}
-
+ return !Impl_;
+}
+
#if 0
#include <util/datetime/cputimer.h>
diff --git a/util/memory/tempbuf_ut.cpp b/util/memory/tempbuf_ut.cpp
index d6bcf9d546..ec3ebb168a 100644
--- a/util/memory/tempbuf_ut.cpp
+++ b/util/memory/tempbuf_ut.cpp
@@ -1,14 +1,14 @@
#include "tempbuf.h"
#include <utility>
-
+
#include <library/cpp/testing/unittest/registar.h>
class TTempBufTest: public TTestBase {
UNIT_TEST_SUITE(TTempBufTest);
UNIT_TEST(TestCreate);
UNIT_TEST(TestOps);
- UNIT_TEST(TestMoveCtor);
+ UNIT_TEST(TestMoveCtor);
UNIT_TEST(TestAppend);
UNIT_TEST(TestProceed);
UNIT_TEST_SUITE_END();
@@ -16,7 +16,7 @@ class TTempBufTest: public TTestBase {
public:
void TestCreate();
void TestOps();
- void TestMoveCtor();
+ void TestMoveCtor();
void TestProceed();
void TestAppend() {
@@ -64,19 +64,19 @@ void TTempBufTest::TestOps() {
UNIT_ASSERT(tmp.Size() >= 201);
UNIT_ASSERT_EQUAL(tmp.Filled(), 0);
}
-
-void TTempBufTest::TestMoveCtor() {
- TTempBuf src;
- UNIT_ASSERT(!src.IsNull());
-
- src.Proceed(10);
-
+
+void TTempBufTest::TestMoveCtor() {
+ TTempBuf src;
+ UNIT_ASSERT(!src.IsNull());
+
+ src.Proceed(10);
+
TTempBuf dst(std::move(src));
-
- UNIT_ASSERT(src.IsNull());
- UNIT_ASSERT(!dst.IsNull());
- UNIT_ASSERT_EQUAL(dst.Filled(), 10);
-}
+
+ UNIT_ASSERT(src.IsNull());
+ UNIT_ASSERT(!dst.IsNull());
+ UNIT_ASSERT_EQUAL(dst.Filled(), 10);
+}
void TTempBufTest::TestProceed() {
TTempBuf src;