aboutsummaryrefslogtreecommitdiffstats
path: root/util/draft
diff options
context:
space:
mode:
authornga <nga@yandex-team.ru>2022-02-10 16:48:09 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:09 +0300
commitc2a1af049e9deca890e9923abe64fe6c59060348 (patch)
treeb222e5ac2e2e98872661c51ccceee5da0d291e13 /util/draft
parent1f553f46fb4f3c5eec631352cdd900a0709016af (diff)
downloadydb-c2a1af049e9deca890e9923abe64fe6c59060348.tar.gz
Restoring authorship annotation for <nga@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/draft')
-rw-r--r--util/draft/date.cpp2
-rw-r--r--util/draft/date.h6
-rw-r--r--util/draft/holder_vector.h20
-rw-r--r--util/draft/ya.make2
4 files changed, 15 insertions, 15 deletions
diff --git a/util/draft/date.cpp b/util/draft/date.cpp
index 11b080820f..a290c46050 100644
--- a/util/draft/date.cpp
+++ b/util/draft/date.cpp
@@ -2,7 +2,7 @@
#include <util/string/cast.h>
#include <util/generic/yexception.h>
-#include <util/datetime/base.h>
+#include <util/datetime/base.h>
time_t GetDateStart(time_t ts) {
tm dateTm;
diff --git a/util/draft/date.h b/util/draft/date.h
index 01c9ae308f..e3eb616fe5 100644
--- a/util/draft/date.h
+++ b/util/draft/date.h
@@ -11,9 +11,9 @@
time_t GetDateStart(time_t ts);
-// Local date (without time zone)
+// Local date (without time zone)
class TDate {
- // XXX: wrong: must store number of days since epoch
+ // XXX: wrong: must store number of days since epoch
time_t Timestamp;
public:
@@ -22,7 +22,7 @@ public:
{
}
- // XXX: wrong. Should be replace with two methods: TodayGmt() and TodayLocal()
+ // XXX: wrong. Should be replace with two methods: TodayGmt() and TodayLocal()
static TDate Today() {
return TDate(time(nullptr));
}
diff --git a/util/draft/holder_vector.h b/util/draft/holder_vector.h
index c03422584c..1c62055bd9 100644
--- a/util/draft/holder_vector.h
+++ b/util/draft/holder_vector.h
@@ -15,15 +15,15 @@ public:
}
~THolderVector() {
- Clear();
- }
-
- void Clear() {
+ Clear();
+ }
+
+ void Clear() {
for (typename TBase::iterator it = TBase::begin(); it != TBase::end(); ++it) {
if (*it)
D::Destroy(*it);
}
- TBase::clear();
+ TBase::clear();
}
size_t Size() const {
@@ -46,9 +46,9 @@ public:
}
void PushBack(THolder<T> t) {
- PushBack(t.Release());
- }
-
+ PushBack(t.Release());
+ }
+
void Reset(size_t i, THolder<T> t) {
T* current = (*this)[i];
if (current) {
@@ -88,9 +88,9 @@ public:
using TBase::back;
using TBase::begin;
using TBase::capacity;
- using TBase::empty;
+ using TBase::empty;
using TBase::end;
- using TBase::front;
+ using TBase::front;
using TBase::reserve;
using TBase::size;
diff --git a/util/draft/ya.make b/util/draft/ya.make
index 815b771ced..e00674b682 100644
--- a/util/draft/ya.make
+++ b/util/draft/ya.make
@@ -10,7 +10,7 @@ IF (TSTRING_IS_STD_STRING)
ENDIF()
SRCS(
- date.cpp
+ date.cpp
datetime.cpp
enum.cpp
holder_vector.cpp