diff options
author | arcadia-devtools <arcadia-devtools@yandex-team.ru> | 2022-02-18 16:35:49 +0300 |
---|---|---|
committer | arcadia-devtools <arcadia-devtools@yandex-team.ru> | 2022-02-18 16:35:49 +0300 |
commit | edefa564e11987d4aa60fff0a2378785deb03b54 (patch) | |
tree | 66e32a4d0284fb784a73d76f5531b708cd72be44 /library/cpp/string_utils | |
parent | 04182a7d083f485a3364f570da83470e580c78ac (diff) | |
download | ydb-edefa564e11987d4aa60fff0a2378785deb03b54.tar.gz |
intermediate changes
ref:5a427ceffcbeddcbaed23c62818445bd98632b96
Diffstat (limited to 'library/cpp/string_utils')
-rw-r--r-- | library/cpp/string_utils/quote/quote.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/library/cpp/string_utils/quote/quote.cpp b/library/cpp/string_utils/quote/quote.cpp index e523350b80..bac72d07fc 100644 --- a/library/cpp/string_utils/quote/quote.cpp +++ b/library/cpp/string_utils/quote/quote.cpp @@ -48,7 +48,7 @@ namespace { class TFromHexLenLimited { public: - TFromHexLenLimited(const char* end) + explicit TFromHexLenLimited(const char* end) : End(end) { } @@ -189,11 +189,11 @@ static inline It1 Quote(It1 to, It2 from, It3 end, const char* safe) { // lists following reserved characters: const char* reserved = ":/?#[]@!$&\'()*+,;="; for (const char* p = reserved; *p; ++p) { - escape_map[(unsigned char)*p] = 1; + escape_map[(unsigned char)*p] = true; } // characters we think are safe at the moment for (const char* p = safe; *p; ++p) { - escape_map[(unsigned char)*p] = 0; + escape_map[(unsigned char)*p] = false; } return Escape(to, from, end, escape_map); |