diff options
| author | druxa <[email protected]> | 2022-02-10 16:49:28 +0300 | 
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:49:28 +0300 | 
| commit | a6b6f52a89f054724740e5f7a04800b3d64f4367 (patch) | |
| tree | fa84234b6b0eb745f922f635a6497d1e7eb9b2e0 /library/cpp | |
| parent | 3d0b4183f2ddf8aebaf3f4ad74517b2eddef26a8 (diff) | |
Restoring authorship annotation for <[email protected]>. Commit 1 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 412424889f3..1905973c88e 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 42233f63d25..33933a1cb4a 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 7b730564ebb..2a5f79b6586 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 44517a00924..a4abfc9d625 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.  | 
