diff options
author | limburg <limburg@yandex-team.ru> | 2022-02-10 16:47:37 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:37 +0300 |
commit | 54295b9bd4dc45c54d804084fd846d945148a7f0 (patch) | |
tree | c0748b5dcbade83af788c0abfa89c0383d6b779c | |
parent | f8250dcf35b79fc52c9e6c6fa3931df9fd4ce472 (diff) | |
download | ydb-54295b9bd4dc45c54d804084fd846d945148a7f0.tar.gz |
Restoring authorship annotation for <limburg@yandex-team.ru>. Commit 2 of 2.
-rw-r--r-- | contrib/libs/libidn/idna.c | 8 | ||||
-rw-r--r-- | library/cpp/charset/codepage.h | 2 | ||||
-rw-r--r-- | util/charset/recode_result.h | 12 | ||||
-rw-r--r-- | util/generic/bitops.h | 2 | ||||
-rw-r--r-- | util/generic/yexception.cpp | 2 | ||||
-rw-r--r-- | util/string/util.h | 10 |
6 files changed, 18 insertions, 18 deletions
diff --git a/contrib/libs/libidn/idna.c b/contrib/libs/libidn/idna.c index a4bacd0525..af3f24d58e 100644 --- a/contrib/libs/libidn/idna.c +++ b/contrib/libs/libidn/idna.c @@ -541,10 +541,10 @@ idna_to_ascii_4z (const uint32_t * input, char **output, int flags) { rc = idna_to_ascii_4i (start, end - start, buf, flags); if (rc != IDNA_SUCCESS) - { - free (out); - return rc; - } + { + free (out); + return rc; + } } if (out) diff --git a/library/cpp/charset/codepage.h b/library/cpp/charset/codepage.h index 48b68f9945..30a02a4610 100644 --- a/library/cpp/charset/codepage.h +++ b/library/cpp/charset/codepage.h @@ -207,7 +207,7 @@ struct Encoder { Y_ASSERT(code != 0 || ch == 0); return code; } - + inline unsigned char operator[](wchar32 ch) const { return Tr(ch); } diff --git a/util/charset/recode_result.h b/util/charset/recode_result.h index 6b0c184da1..2c7366e7b2 100644 --- a/util/charset/recode_result.h +++ b/util/charset/recode_result.h @@ -1,9 +1,9 @@ #pragma once enum RECODE_RESULT { - RECODE_OK, - RECODE_EOINPUT, - RECODE_EOOUTPUT, - RECODE_BROKENSYMBOL, - RECODE_ERROR, -}; + RECODE_OK, + RECODE_EOINPUT, + RECODE_EOOUTPUT, + RECODE_BROKENSYMBOL, + RECODE_ERROR, +}; diff --git a/util/generic/bitops.h b/util/generic/bitops.h index fe6583a33c..2db15fc59b 100644 --- a/util/generic/bitops.h +++ b/util/generic/bitops.h @@ -10,7 +10,7 @@ #include <intrin.h> #endif -namespace NBitOps { +namespace NBitOps { namespace NPrivate { template <unsigned N, typename T> struct TClp2Helper { diff --git a/util/generic/yexception.cpp b/util/generic/yexception.cpp index e24c179650..2ce6c4369d 100644 --- a/util/generic/yexception.cpp +++ b/util/generic/yexception.cpp @@ -1,5 +1,5 @@ #include "bt_exception.h" -#include "yexception.h" +#include "yexception.h" #include <util/system/backtrace.h> #include <util/system/type_name.h> diff --git a/util/string/util.h b/util/string/util.h index fb65f89273..0d77a5042b 100644 --- a/util/string/util.h +++ b/util/string/util.h @@ -15,11 +15,11 @@ int a2i(const TString& s); /// Removes the last character if it is equal to c. -template <class T> -inline void RemoveIfLast(T& s, int c) { - const size_t length = s.length(); - if (length && s[length - 1] == c) - s.remove(length - 1); +template <class T> +inline void RemoveIfLast(T& s, int c) { + const size_t length = s.length(); + if (length && s[length - 1] == c) + s.remove(length - 1); } /// Adds lastCh symbol to the the of the string if it is not already there. |