diff options
author | agorodilov <agorodilov@yandex-team.ru> | 2022-02-10 16:47:09 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:09 +0300 |
commit | bd5ef432f5cfb1e18851381329d94665a4c22470 (patch) | |
tree | b83306b6e37edeea782e9eed673d89286c4fef35 /util/draft | |
parent | 7a4979e6211c3e78c7f9041d4a9e5d3405343c36 (diff) | |
download | ydb-bd5ef432f5cfb1e18851381329d94665a4c22470.tar.gz |
Restoring authorship annotation for <agorodilov@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/draft')
-rw-r--r-- | util/draft/date.h | 2 | ||||
-rw-r--r-- | util/draft/datetime_ut.cpp | 2 | ||||
-rw-r--r-- | util/draft/enum.h | 4 | ||||
-rw-r--r-- | util/draft/holder_vector.h | 2 | ||||
-rw-r--r-- | util/draft/holder_vector_ut.cpp | 6 | ||||
-rw-r--r-- | util/draft/matrix.h | 6 |
6 files changed, 11 insertions, 11 deletions
diff --git a/util/draft/date.h b/util/draft/date.h index 67922526fb..e3eb616fe5 100644 --- a/util/draft/date.h +++ b/util/draft/date.h @@ -24,7 +24,7 @@ public: // XXX: wrong. Should be replace with two methods: TodayGmt() and TodayLocal() static TDate Today() { - return TDate(time(nullptr)); + return TDate(time(nullptr)); } TDate(const char* yyyymmdd); diff --git a/util/draft/datetime_ut.cpp b/util/draft/datetime_ut.cpp index 00dd602377..a5e065ef6e 100644 --- a/util/draft/datetime_ut.cpp +++ b/util/draft/datetime_ut.cpp @@ -88,7 +88,7 @@ Y_UNIT_TEST_SUITE(TSimpleTMTest) { UNIT_ASSERT_VALUES_EQUAL((ui32)0, (ui32)TSimpleTM::New(0)); UNIT_ASSERT((ui32)TSimpleTM::New(0).IsUTC()); - time_t t = time(nullptr); + time_t t = time(nullptr); { struct tm tmt; diff --git a/util/draft/enum.h b/util/draft/enum.h index ed8536644a..18002b7df2 100644 --- a/util/draft/enum.h +++ b/util/draft/enum.h @@ -24,7 +24,7 @@ const V* FindEnumFromStringImpl(K1 key, const std::pair<K2, V>* entries, size_t for (size_t i = 0; i < arraySize; i++) if (entries[i].first == key) return &entries[i].second; - return nullptr; + return nullptr; } // special version for const char* @@ -33,7 +33,7 @@ const V* FindEnumFromStringImpl(const char* key, const std::pair<const char*, V> for (size_t i = 0; i < arraySize; i++) if (entries[i].first && key && !strcmp(entries[i].first, key)) return &entries[i].second; - return nullptr; + return nullptr; } template <class K, class V> diff --git a/util/draft/holder_vector.h b/util/draft/holder_vector.h index 2df6c83476..1c62055bd9 100644 --- a/util/draft/holder_vector.h +++ b/util/draft/holder_vector.h @@ -67,7 +67,7 @@ public: T* Release(size_t i) { T* t = (*this)[i]; - (*this)[i] = nullptr; + (*this)[i] = nullptr; return t; } diff --git a/util/draft/holder_vector_ut.cpp b/util/draft/holder_vector_ut.cpp index 9a7a4d0662..f64393860a 100644 --- a/util/draft/holder_vector_ut.cpp +++ b/util/draft/holder_vector_ut.cpp @@ -15,7 +15,7 @@ Y_UNIT_TEST_SUITE(THolderVectorTest) { UNIT_ASSERT(ints); for (size_t i = 0; i < ints.Size(); ++i) { - UNIT_ASSERT_EQUAL(ints[i], (int*)nullptr); + UNIT_ASSERT_EQUAL(ints[i], (int*)nullptr); } } @@ -34,9 +34,9 @@ Y_UNIT_TEST_SUITE(THolderVectorTest) { Y_UNIT_TEST(TestResetNoValue) { THolderVector<int> ints; ints.Resize(1); - UNIT_ASSERT_EQUAL(ints[0], (int*)nullptr); + UNIT_ASSERT_EQUAL(ints[0], (int*)nullptr); ints.Reset(0, MakeHolder<int>(1)); - UNIT_ASSERT_UNEQUAL(ints[0], (int*)nullptr); + UNIT_ASSERT_UNEQUAL(ints[0], (int*)nullptr); UNIT_ASSERT_VALUES_EQUAL(*ints[0], 1); } diff --git a/util/draft/matrix.h b/util/draft/matrix.h index b7dbb7268e..154d00b35e 100644 --- a/util/draft/matrix.h +++ b/util/draft/matrix.h @@ -10,8 +10,8 @@ class TMatrix: TNonCopyable { // Constructor/Destructor public: TMatrix() - : Buf(nullptr) - , Arr(nullptr) + : Buf(nullptr) + , Arr(nullptr) , M(0) , N(0) , BufSize(0) @@ -28,7 +28,7 @@ public: } TMatrix(size_t m, size_t n, T* buf) - : Buf(nullptr) + : Buf(nullptr) , Arr(buf) , M(m) , N(n) |