aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/string_utils
diff options
context:
space:
mode:
authorarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-02-18 16:35:49 +0300
committerarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-02-18 16:35:49 +0300
commitedefa564e11987d4aa60fff0a2378785deb03b54 (patch)
tree66e32a4d0284fb784a73d76f5531b708cd72be44 /library/cpp/string_utils
parent04182a7d083f485a3364f570da83470e580c78ac (diff)
downloadydb-edefa564e11987d4aa60fff0a2378785deb03b54.tar.gz
intermediate changes
ref:5a427ceffcbeddcbaed23c62818445bd98632b96
Diffstat (limited to 'library/cpp/string_utils')
-rw-r--r--library/cpp/string_utils/quote/quote.cpp6
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);