diff options
author | monnoroch <monnoroch@yandex-team.ru> | 2022-02-10 16:50:35 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:35 +0300 |
commit | ff230fa56fa52d83a67896163c937c432faabff1 (patch) | |
tree | 4fca95e9c3a81157609ba9c01c82e4205f2cdc19 | |
parent | 6c28d571885436fe17efe87ca39884f80852bb8c (diff) | |
download | ydb-ff230fa56fa52d83a67896163c937c432faabff1.tar.gz |
Restoring authorship annotation for <monnoroch@yandex-team.ru>. Commit 1 of 2.
-rw-r--r-- | library/cpp/protobuf/json/json2proto.h | 10 | ||||
-rw-r--r-- | library/cpp/protobuf/json/proto2json.cpp | 2 | ||||
-rw-r--r-- | util/draft/date.cpp | 18 | ||||
-rw-r--r-- | util/draft/date.h | 2 | ||||
-rw-r--r-- | util/generic/ptr.h | 10 |
5 files changed, 21 insertions, 21 deletions
diff --git a/library/cpp/protobuf/json/json2proto.h b/library/cpp/protobuf/json/json2proto.h index 4c33498dfa..2ae77cad2c 100644 --- a/library/cpp/protobuf/json/json2proto.h +++ b/library/cpp/protobuf/json/json2proto.h @@ -6,7 +6,7 @@ #include <library/cpp/json/json_reader.h> #include <library/cpp/json/json_value.h> -#include <util/stream/input.h> +#include <util/stream/input.h> #include <util/stream/str.h> #include <util/stream/mem.h> @@ -15,7 +15,7 @@ namespace google { class Message; } } - + namespace NProtobufJson { struct TJson2ProtoConfig { using TSelf = TJson2ProtoConfig; @@ -198,21 +198,21 @@ namespace NProtobufJson { readerConfig.DontValidateUtf8 = true; return Json2Proto<T>(in, readerConfig, config); } - + /// @throw yexception template <typename T> T Json2Proto(const TString& value, const TJson2ProtoConfig& config = TJson2ProtoConfig()) { TStringInput in(value); return Json2Proto<T>(in, config); } - + /// @throw yexception template <typename T> T Json2Proto(const TStringBuf& value, const TJson2ProtoConfig& config = TJson2ProtoConfig()) { TMemoryInput in(value); return Json2Proto<T>(in, config); } - + /// @throw yexception template <typename T> T Json2Proto(const char* ptr, const TJson2ProtoConfig& config = TJson2ProtoConfig()) { diff --git a/library/cpp/protobuf/json/proto2json.cpp b/library/cpp/protobuf/json/proto2json.cpp index 3d76a91686..5c79f372cb 100644 --- a/library/cpp/protobuf/json/proto2json.cpp +++ b/library/cpp/protobuf/json/proto2json.cpp @@ -53,4 +53,4 @@ namespace NProtobufJson { return res; } -} +} diff --git a/util/draft/date.cpp b/util/draft/date.cpp index a290c46050..9e769dba20 100644 --- a/util/draft/date.cpp +++ b/util/draft/date.cpp @@ -39,16 +39,16 @@ TDate FromStringImpl<TDate>(const char* data, size_t len) { return TDate(ParseDate(TString(data, len).data())); } -TDate::TDate(const char* yyyymmdd) - : Timestamp(GetDateStart(ParseDate(yyyymmdd))) -{ -} - +TDate::TDate(const char* yyyymmdd) + : Timestamp(GetDateStart(ParseDate(yyyymmdd))) +{ +} + TDate::TDate(const TString& yyyymmdd) - : Timestamp(GetDateStart(ParseDate(yyyymmdd.c_str()))) -{ -} - + : Timestamp(GetDateStart(ParseDate(yyyymmdd.c_str()))) +{ +} + TDate::TDate(time_t ts) : Timestamp(GetDateStart(ts)) { diff --git a/util/draft/date.h b/util/draft/date.h index e3eb616fe5..f10e6be1ce 100644 --- a/util/draft/date.h +++ b/util/draft/date.h @@ -27,7 +27,7 @@ public: return TDate(time(nullptr)); } - TDate(const char* yyyymmdd); + TDate(const char* yyyymmdd); TDate(const TString& yyyymmdd); TDate(unsigned year, unsigned month, unsigned monthDay); // month from 01, monthDay from 01 TDate(const TString& date, const TString& format); diff --git a/util/generic/ptr.h b/util/generic/ptr.h index 19db0e3ec5..e3aa3dacff 100644 --- a/util/generic/ptr.h +++ b/util/generic/ptr.h @@ -101,7 +101,7 @@ private: template <class Base, class T> class TPointerCommon { public: - using TValueType = T; + using TValueType = T; inline T* operator->() const noexcept { T* ptr = AsT(); @@ -269,9 +269,9 @@ public: { } - THolder(const THolder&) = delete; - THolder& operator=(const THolder&) = delete; - + THolder(const THolder&) = delete; + THolder& operator=(const THolder&) = delete; + inline ~THolder() { DoDestroy(); } @@ -1057,7 +1057,7 @@ private: // Copy-on-write pointer template <class TPtr, class TCopy> class TCowPtr: public TPointerBase<TCowPtr<TPtr, TCopy>, const typename TPtr::TValueType> { - using T = typename TPtr::TValueType; + using T = typename TPtr::TValueType; public: inline TCowPtr() = default; |