aboutsummaryrefslogtreecommitdiffstats
path: root/util/draft
diff options
context:
space:
mode:
authoreeight <eeight@yandex-team.ru>2022-02-10 16:46:18 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:18 +0300
commit475c0a46f28166e83fd263badc7546377cddcabe (patch)
tree39c5a49b8aaad78fe390b6f1f2886bdbda40f3e7 /util/draft
parenta6e0145a095c7bb3770d6e07aee301de5c73f96e (diff)
downloadydb-475c0a46f28166e83fd263badc7546377cddcabe.tar.gz
Restoring authorship annotation for <eeight@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/draft')
-rw-r--r--util/draft/holder_vector_ut.cpp6
-rw-r--r--util/draft/ip.h8
-rw-r--r--util/draft/ya.make8
3 files changed, 11 insertions, 11 deletions
diff --git a/util/draft/holder_vector_ut.cpp b/util/draft/holder_vector_ut.cpp
index f64393860a..0926df8312 100644
--- a/util/draft/holder_vector_ut.cpp
+++ b/util/draft/holder_vector_ut.cpp
@@ -25,8 +25,8 @@ Y_UNIT_TEST_SUITE(THolderVectorTest) {
ints.PushBack(new int(1));
UNIT_ASSERT_VALUES_EQUAL(*ints[0], 0);
UNIT_ASSERT_VALUES_EQUAL(*ints[1], 1);
- ints.Reset(0, MakeHolder<int>(2));
- ints.Reset(1, MakeHolder<int>(3));
+ ints.Reset(0, MakeHolder<int>(2));
+ ints.Reset(1, MakeHolder<int>(3));
UNIT_ASSERT_VALUES_EQUAL(*ints[0], 2);
UNIT_ASSERT_VALUES_EQUAL(*ints[1], 3);
}
@@ -35,7 +35,7 @@ Y_UNIT_TEST_SUITE(THolderVectorTest) {
THolderVector<int> ints;
ints.Resize(1);
UNIT_ASSERT_EQUAL(ints[0], (int*)nullptr);
- ints.Reset(0, MakeHolder<int>(1));
+ ints.Reset(0, MakeHolder<int>(1));
UNIT_ASSERT_UNEQUAL(ints[0], (int*)nullptr);
UNIT_ASSERT_VALUES_EQUAL(*ints[0], 1);
}
diff --git a/util/draft/ip.h b/util/draft/ip.h
index eb947cd2cd..6647cc6348 100644
--- a/util/draft/ip.h
+++ b/util/draft/ip.h
@@ -91,7 +91,7 @@ inline void Out<TIp6>(IOutputStream& os, const TIp6& a) {
os << Ip6ToString(a);
}
-using TIp4Or6 = std::variant<TIp4, TIp6>;
+using TIp4Or6 = std::variant<TIp4, TIp6>;
static inline TIp4Or6 Ip4Or6FromString(const char* ipStr) {
const char* c = ipStr;
@@ -107,10 +107,10 @@ static inline TIp4Or6 Ip4Or6FromString(const char* ipStr) {
}
static inline TString Ip4Or6ToString(const TIp4Or6& ip) {
- if (std::holds_alternative<TIp6>(ip)) {
- return Ip6ToString(std::get<TIp6>(ip));
+ if (std::holds_alternative<TIp6>(ip)) {
+ return Ip6ToString(std::get<TIp6>(ip));
} else {
- return IpToString(std::get<TIp4>(ip));
+ return IpToString(std::get<TIp4>(ip));
}
}
diff --git a/util/draft/ya.make b/util/draft/ya.make
index e00674b682..4756a982eb 100644
--- a/util/draft/ya.make
+++ b/util/draft/ya.make
@@ -5,10 +5,10 @@ SUBSCRIBER(g:util-subscribers)
NO_UTIL()
-IF (TSTRING_IS_STD_STRING)
- CFLAGS(GLOBAL -DTSTRING_IS_STD_STRING)
-ENDIF()
-
+IF (TSTRING_IS_STD_STRING)
+ CFLAGS(GLOBAL -DTSTRING_IS_STD_STRING)
+ENDIF()
+
SRCS(
date.cpp
datetime.cpp