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 | f8250dcf35b79fc52c9e6c6fa3931df9fd4ce472 (patch) | |
tree | 09491b73fe8fbb0990530ad9e7d4a6d96aa8dff4 | |
parent | 0d7c4ef9025d79c9bba6f62a92b490ee72e80ed0 (diff) | |
download | ydb-f8250dcf35b79fc52c9e6c6fa3931df9fd4ce472.tar.gz |
Restoring authorship annotation for <limburg@yandex-team.ru>. Commit 1 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 af3f24d58e..a4bacd0525 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 30a02a4610..48b68f9945 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 2c7366e7b2..6b0c184da1 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 2db15fc59b..fe6583a33c 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 2ce6c4369d..e24c179650 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 0d77a5042b..fb65f89273 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. |