aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic/ptr_ut.cpp
diff options
context:
space:
mode:
authoriaz1607 <iaz1607@yandex-team.ru>2022-02-10 16:45:37 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:37 +0300
commite5437feb4ac2d2dc044e1090b9312dde5ef197e0 (patch)
treef5a238c69dd20a1fa2092127a31b8aff25020f7d /util/generic/ptr_ut.cpp
parentf4945d0a44b8770f0801de3056aa41639b0b7bd2 (diff)
downloadydb-e5437feb4ac2d2dc044e1090b9312dde5ef197e0.tar.gz
Restoring authorship annotation for <iaz1607@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/generic/ptr_ut.cpp')
-rw-r--r--util/generic/ptr_ut.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/util/generic/ptr_ut.cpp b/util/generic/ptr_ut.cpp
index c2dcff23f6..f4da1a38bf 100644
--- a/util/generic/ptr_ut.cpp
+++ b/util/generic/ptr_ut.cpp
@@ -110,7 +110,7 @@ public:
}
};
-static A* MakeA() {
+static A* MakeA() {
return new A();
}
@@ -118,18 +118,18 @@ static A* MakeA() {
* test compileability
*/
class B;
-static TSimpleIntrusivePtr<B> GetB() {
+static TSimpleIntrusivePtr<B> GetB() {
throw 1;
}
-void Func() {
- TSimpleIntrusivePtr<B> b = GetB();
+void Func() {
+ TSimpleIntrusivePtr<B> b = GetB();
}
void TPointerTest::TestSimpleIntrPtr() {
{
- TSimpleIntrusivePtr<A> a1(MakeA());
- TSimpleIntrusivePtr<A> a2(MakeA());
+ TSimpleIntrusivePtr<A> a1(MakeA());
+ TSimpleIntrusivePtr<A> a2(MakeA());
TSimpleIntrusivePtr<A> a3 = a2;
a1 = a2;
@@ -141,7 +141,7 @@ void TPointerTest::TestSimpleIntrPtr() {
void TPointerTest::TestHolderPtr() {
{
- THolder<A> a1(MakeA());
+ THolder<A> a1(MakeA());
THolder<A> a2(a1.Release());
}
@@ -217,20 +217,20 @@ void TPointerTest::TestMakeHolder() {
{
class TRec {
private:
- int X_, Y_;
+ int X_, Y_;
public:
TRec(int x, int y)
- : X_(x)
- , Y_(y)
+ : X_(x)
+ , Y_(y)
{
}
int GetX() const {
- return X_;
+ return X_;
}
int GetY() const {
- return Y_;
+ return Y_;
}
};
auto ptr = MakeHolder<TRec>(1, 2);
@@ -241,7 +241,7 @@ void TPointerTest::TestMakeHolder() {
void TPointerTest::TestTrulePtr() {
{
- TAutoPtr<A> a1(MakeA());
+ TAutoPtr<A> a1(MakeA());
TAutoPtr<A> a2(a1);
a1 = a2;
}
@@ -251,7 +251,7 @@ void TPointerTest::TestTrulePtr() {
void TPointerTest::TestAutoToHolder() {
{
- TAutoPtr<A> a1(MakeA());
+ TAutoPtr<A> a1(MakeA());
THolder<A> a2(a1);
UNIT_ASSERT_EQUAL(a1.Get(), nullptr);
@@ -279,9 +279,9 @@ void TPointerTest::TestAutoToHolder() {
}
void TPointerTest::TestCopyPtr() {
- TCopyPtr<A> a1(MakeA());
+ TCopyPtr<A> a1(MakeA());
{
- TCopyPtr<A> a2(MakeA());
+ TCopyPtr<A> a2(MakeA());
TCopyPtr<A> a3 = a2;
UNIT_ASSERT_VALUES_EQUAL(cnt, 3);
@@ -650,20 +650,20 @@ void TPointerTest::TestMakeShared() {
{
class TRec {
private:
- int X_, Y_;
+ int X_, Y_;
public:
TRec(int x, int y)
- : X_(x)
- , Y_(y)
+ : X_(x)
+ , Y_(y)
{
}
int GetX() const {
- return X_;
+ return X_;
}
int GetY() const {
- return Y_;
+ return Y_;
}
};
TSimpleSharedPtr<TRec> ptr = MakeSimpleShared<TRec>(1, 2);