diff options
author | druxa <druxa@yandex-team.ru> | 2022-02-10 16:49:28 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:28 +0300 |
commit | c03ef37690111076e93822dbfa59fd672fa45c33 (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp | |
parent | a6b6f52a89f054724740e5f7a04800b3d64f4367 (diff) | |
download | ydb-c03ef37690111076e93822dbfa59fd672fa45c33.tar.gz |
Restoring authorship annotation for <druxa@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp')
-rw-r--r-- | library/cpp/binsaver/bin_saver.h | 10 | ||||
-rw-r--r-- | library/cpp/logger/system.cpp | 2 | ||||
-rw-r--r-- | library/cpp/messagebus/www/concat_strings.h | 6 | ||||
-rw-r--r-- | library/cpp/testing/unittest/registar.h | 4 |
4 files changed, 11 insertions, 11 deletions
diff --git a/library/cpp/binsaver/bin_saver.h b/library/cpp/binsaver/bin_saver.h index 1905973c88..412424889f 100644 --- a/library/cpp/binsaver/bin_saver.h +++ b/library/cpp/binsaver/bin_saver.h @@ -258,11 +258,11 @@ private: for (i64 offset = 0; offset < nSize; offset += chunkSize) { void* ptr = (char*)pData + offset; i64 size = offset + chunkSize < nSize ? chunkSize : (nSize - offset); - if (bRead) - File.Read(ptr, size); - else - File.Write(ptr, size); - } + if (bRead) + File.Read(ptr, size); + else + File.Write(ptr, size); + } } // storing/loading pointers to objects diff --git a/library/cpp/logger/system.cpp b/library/cpp/logger/system.cpp index 33933a1cb4..42233f63d2 100644 --- a/library/cpp/logger/system.cpp +++ b/library/cpp/logger/system.cpp @@ -22,7 +22,7 @@ TSysLogBackend::TSysLogBackend(const char* ident, EFacility facility, int flags) #if defined(_unix_) Y_ASSERT(TSYSLOG_LOCAL0 <= facility && facility <= TSYSLOG_LOCAL7); - static const int f2sf[] = { + static const int f2sf[] = { LOG_LOCAL0, LOG_LOCAL1, LOG_LOCAL2, diff --git a/library/cpp/messagebus/www/concat_strings.h b/library/cpp/messagebus/www/concat_strings.h index 2a5f79b658..7b730564eb 100644 --- a/library/cpp/messagebus/www/concat_strings.h +++ b/library/cpp/messagebus/www/concat_strings.h @@ -10,13 +10,13 @@ inline void DoConcatStrings(TStringStream&) { template <class T, class... R> inline void DoConcatStrings(TStringStream& ss, const T& t, const R&... r) { - ss << t; - DoConcatStrings(ss, r...); + ss << t; + DoConcatStrings(ss, r...); } template <class... R> inline TString ConcatStrings(const R&... r) { TStringStream ss; - DoConcatStrings(ss, r...); + DoConcatStrings(ss, r...); return ss.Str(); } diff --git a/library/cpp/testing/unittest/registar.h b/library/cpp/testing/unittest/registar.h index a4abfc9d62..44517a0092 100644 --- a/library/cpp/testing/unittest/registar.h +++ b/library/cpp/testing/unittest/registar.h @@ -374,14 +374,14 @@ public: \ #define UNIT_FAIL(M) UNIT_FAIL_IMPL("forced failure", M) #define UNIT_FAIL_NONFATAL(M) UNIT_FAIL_NONFATAL_IMPL("forced failure", M) -//types +//types #define UNIT_ASSERT_TYPES_EQUAL(A, B) \ do { \ if (!std::is_same<A, B>::value) { \ UNIT_FAIL_IMPL("types equal assertion failed", (::TStringBuilder() << #A << " (" << TypeName<A>() << ") != " << #B << " (" << TypeName<B>() << ")").data()); \ } \ } while (false) - + //doubles // UNIT_ASSERT_DOUBLES_EQUAL_DEPRECATED* macros do not handle NaNs correctly (see IGNIETFERRO-1419) and are for backward compatibility // only. Consider switching to regular UNIT_ASSERT_DOUBLES_EQUAL* macros if you're still using the deprecated version. |