diff options
author | dmikhalev <dmikhalev@yandex-team.ru> | 2022-02-10 16:49:29 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:29 +0300 |
commit | b93b3eb857a34bc32cef3c1b0c709e8365253b34 (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp | |
parent | 3b5ee31ed70f690af39dfdec632060610b71b89e (diff) | |
download | ydb-b93b3eb857a34bc32cef3c1b0c709e8365253b34.tar.gz |
Restoring authorship annotation for <dmikhalev@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp')
-rw-r--r-- | library/cpp/binsaver/bin_saver.h | 18 | ||||
-rw-r--r-- | library/cpp/http/fetch/httpload.cpp | 2 | ||||
-rw-r--r-- | library/cpp/http/fetch/httpparser.h | 10 | ||||
-rw-r--r-- | library/cpp/http/fetch/httpzreader.h | 4 | ||||
-rw-r--r-- | library/cpp/sighandler/async_signals_handler.cpp | 2 |
5 files changed, 18 insertions, 18 deletions
diff --git a/library/cpp/binsaver/bin_saver.h b/library/cpp/binsaver/bin_saver.h index a435a969f2..412424889f 100644 --- a/library/cpp/binsaver/bin_saver.h +++ b/library/cpp/binsaver/bin_saver.h @@ -566,25 +566,25 @@ int TPtrBase<TUserObj, TRef>::operator&(IBinSaver& f) { } //////////////////////////////////////////////////////////////////////////////////////////////////// - + extern TClassFactory<IObjectBase>* pSaverClasses; void StartRegisterSaveload(); - + template <class TReg> -struct TRegisterSaveLoadType { - TRegisterSaveLoadType(int num) { - StartRegisterSaveload(); +struct TRegisterSaveLoadType { + TRegisterSaveLoadType(int num) { + StartRegisterSaveload(); pSaverClasses->RegisterType(num, TReg::NewSaveLoadNullItem, (TReg*)nullptr); - } -}; - + } +}; + #define Y_BINSAVER_REGISTER(name) \ BASIC_REGISTER_CLASS(name) \ static TRegisterSaveLoadType<name> init##name(MurmurHash<int>(#name, sizeof(#name))); #define REGISTER_SAVELOAD_CLASS(N, name) \ BASIC_REGISTER_CLASS(name) \ - static TRegisterSaveLoadType<name> init##name##N(N); + static TRegisterSaveLoadType<name> init##name##N(N); // using TObj/TRef on forward declared templ class will not work // but multiple registration with same id is allowed diff --git a/library/cpp/http/fetch/httpload.cpp b/library/cpp/http/fetch/httpload.cpp index 1d59e3f46d..82ea8900b5 100644 --- a/library/cpp/http/fetch/httpload.cpp +++ b/library/cpp/http/fetch/httpload.cpp @@ -108,7 +108,7 @@ long httpAgentReader::readPortion(void*& buf) { /************************************************************/ bool httpAgentReader::skipTheRest() { - void* b; + void* b; while (!eof()) readPortion(b); return (State == hp_eof); diff --git a/library/cpp/http/fetch/httpparser.h b/library/cpp/http/fetch/httpparser.h index a93f67aa62..769828e4ae 100644 --- a/library/cpp/http/fetch/httpparser.h +++ b/library/cpp/http/fetch/httpparser.h @@ -161,7 +161,7 @@ protected: : hp_read_closed; if (State == hp_begin_chunk_header) { // unget \n for chunk reader - buf = (char*)buf - 1; + buf = (char*)buf - 1; size++; } if (isReader) @@ -223,7 +223,7 @@ protected: if (isReader) return ChunkSize; size -= ChunkSize; - buf = (char*)buf + ChunkSize; + buf = (char*)buf + ChunkSize; } else { Header->entity_size += size; ChunkSize -= size; @@ -252,7 +252,7 @@ public: } void Parse(void* buf, long size) { - TBaseT::ParseGeneric(buf, size); + TBaseT::ParseGeneric(buf, size); } }; @@ -310,7 +310,7 @@ public: return Eoferr = -1; } } - Chunk = ParseGeneric(Ptr, Size); + Chunk = ParseGeneric(Ptr, Size); buf = Ptr; Ptr = (char*)Ptr + Chunk; Size -= Chunk; @@ -330,7 +330,7 @@ protected: while (State == hp_in_header) { if ((Size = (long)Reader::Read(Ptr)) < 0) return Eoferr = -1; - ParseGeneric(Ptr, Size); + ParseGeneric(Ptr, Size); } if (State == hp_error) return Eoferr = -1; diff --git a/library/cpp/http/fetch/httpzreader.h b/library/cpp/http/fetch/httpzreader.h index 52ac7274ed..68eb00853d 100644 --- a/library/cpp/http/fetch/httpzreader.h +++ b/library/cpp/http/fetch/httpzreader.h @@ -94,8 +94,8 @@ public: while (true) { if (Stream.avail_in == 0) { void* tmpin = Stream.next_in; - long res = TBase::Read(tmpin); - Stream.next_in = (Bytef*)tmpin; + long res = TBase::Read(tmpin); + Stream.next_in = (Bytef*)tmpin; if (res <= 0) return res; Stream.avail_in = (uInt)res; diff --git a/library/cpp/sighandler/async_signals_handler.cpp b/library/cpp/sighandler/async_signals_handler.cpp index dce409b96b..00ce1c18fb 100644 --- a/library/cpp/sighandler/async_signals_handler.cpp +++ b/library/cpp/sighandler/async_signals_handler.cpp @@ -1,6 +1,6 @@ #include "async_signals_handler.h" -#include <util/system/platform.h> +#include <util/system/platform.h> #if !defined(_win_) |