aboutsummaryrefslogtreecommitdiffstats
path: root/util/draft
diff options
context:
space:
mode:
authordanlark <danlark@yandex-team.ru>2022-02-10 16:46:08 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:08 +0300
commit3426a9bc7f169ae9da54cef557ad2a33f6e8eee0 (patch)
tree26154e1e9990f1bb4525d3e3fb5b6dac2c2c1da2 /util/draft
parentcb68f224c46a8ee52ac3fdd2a32534b8bb8dc134 (diff)
downloadydb-3426a9bc7f169ae9da54cef557ad2a33f6e8eee0.tar.gz
Restoring authorship annotation for <danlark@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/draft')
-rw-r--r--util/draft/date.cpp4
-rw-r--r--util/draft/datetime.h2
-rw-r--r--util/draft/enum.h6
-rw-r--r--util/draft/holder_vector.h2
-rw-r--r--util/draft/matrix.h2
-rw-r--r--util/draft/memory.h2
6 files changed, 9 insertions, 9 deletions
diff --git a/util/draft/date.cpp b/util/draft/date.cpp
index a290c46050..e06926bfc2 100644
--- a/util/draft/date.cpp
+++ b/util/draft/date.cpp
@@ -36,7 +36,7 @@ static time_t ParseDate(const char* dateStr) {
template <>
TDate FromStringImpl<TDate>(const char* data, size_t len) {
- return TDate(ParseDate(TString(data, len).data()));
+ return TDate(ParseDate(TString(data, len).data()));
}
TDate::TDate(const char* yyyymmdd)
@@ -55,7 +55,7 @@ TDate::TDate(time_t ts)
}
TDate::TDate(const TString& date, const TString& format)
- : Timestamp(GetDateStart(ParseDate(date.data(), format.data())))
+ : Timestamp(GetDateStart(ParseDate(date.data(), format.data())))
{
}
diff --git a/util/draft/datetime.h b/util/draft/datetime.h
index 8a387ea6f1..912d63fe1e 100644
--- a/util/draft/datetime.h
+++ b/util/draft/datetime.h
@@ -145,7 +145,7 @@ inline TString date2str(const time_t date) {
inline time_t str2date(const TString& dateStr) {
struct tm dateTm;
memset(&dateTm, 0, sizeof(tm));
- strptime(dateStr.data(), "%Y%m%d", &dateTm);
+ strptime(dateStr.data(), "%Y%m%d", &dateTm);
return mktime(&dateTm);
}
diff --git a/util/draft/enum.h b/util/draft/enum.h
index 18002b7df2..efea2c93a4 100644
--- a/util/draft/enum.h
+++ b/util/draft/enum.h
@@ -5,7 +5,7 @@
#include <util/generic/strbuf.h>
#include <util/stream/str.h>
#include <util/string/cast.h>
-#include <util/string/split.h>
+#include <util/string/split.h>
#include <utility>
class TEnumNotFoundException: public yexception {
@@ -98,7 +98,7 @@ inline void SetEnumFlags(const std::pair<const char*, E> (&str2Enum)[N], TString
} else {
flags.reset();
for (const auto& it : StringSplitter(optSpec).Split(',')) {
- E e = *EnumFromStringImpl(ToString(it.Token()).data(), str2Enum, N);
+ E e = *EnumFromStringImpl(ToString(it.Token()).data(), str2Enum, N);
flags.set(e);
}
}
@@ -113,7 +113,7 @@ inline void SetEnumFlags(const std::pair<const char*, E>* str2Enum, TStringBuf o
} else {
flags.reset();
for (const auto& it : StringSplitter(optSpec).Split(',')) {
- E e = *EnumFromStringImpl(ToString(it.Token()).data(), str2Enum, size);
+ E e = *EnumFromStringImpl(ToString(it.Token()).data(), str2Enum, size);
flags.set(e);
}
}
diff --git a/util/draft/holder_vector.h b/util/draft/holder_vector.h
index 1c62055bd9..0ca1d044d8 100644
--- a/util/draft/holder_vector.h
+++ b/util/draft/holder_vector.h
@@ -5,7 +5,7 @@
#include <util/generic/noncopyable.h>
template <class T, class D = TDelete>
-class THolderVector: public TVector<T*>, public TNonCopyable {
+class THolderVector: public TVector<T*>, public TNonCopyable {
using TBase = TVector<T*>;
public:
diff --git a/util/draft/matrix.h b/util/draft/matrix.h
index 154d00b35e..d4087c76df 100644
--- a/util/draft/matrix.h
+++ b/util/draft/matrix.h
@@ -1,6 +1,6 @@
#pragma once
-#include <util/generic/noncopyable.h>
+#include <util/generic/noncopyable.h>
#include <util/system/yassert.h>
#include <util/system/defaults.h>
#include <string.h>
diff --git a/util/draft/memory.h b/util/draft/memory.h
index 0a9722bb36..51edf683cf 100644
--- a/util/draft/memory.h
+++ b/util/draft/memory.h
@@ -8,7 +8,7 @@
template <class T>
inline bool IsZero(const T* begin, const T* end) {
- return std::find_if(begin, end, [](const T& other) { return other != T(0); }) == end;
+ return std::find_if(begin, end, [](const T& other) { return other != T(0); }) == end;
}
template <size_t Size>