diff options
author | danlark <danlark@yandex-team.ru> | 2022-02-10 16:46:10 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:10 +0300 |
commit | baa58daefa91fde4b4769facdbd2903763b9c6a8 (patch) | |
tree | 1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /util/draft | |
parent | 3426a9bc7f169ae9da54cef557ad2a33f6e8eee0 (diff) | |
download | ydb-baa58daefa91fde4b4769facdbd2903763b9c6a8.tar.gz |
Restoring authorship annotation for <danlark@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/draft')
-rw-r--r-- | util/draft/date.cpp | 4 | ||||
-rw-r--r-- | util/draft/datetime.h | 2 | ||||
-rw-r--r-- | util/draft/enum.h | 6 | ||||
-rw-r--r-- | util/draft/holder_vector.h | 2 | ||||
-rw-r--r-- | util/draft/matrix.h | 2 | ||||
-rw-r--r-- | util/draft/memory.h | 2 |
6 files changed, 9 insertions, 9 deletions
diff --git a/util/draft/date.cpp b/util/draft/date.cpp index e06926bfc2..a290c46050 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 912d63fe1e..8a387ea6f1 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 efea2c93a4..18002b7df2 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 0ca1d044d8..1c62055bd9 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 d4087c76df..154d00b35e 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 51edf683cf..0a9722bb36 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> |