Skip to content

Commit fcb91a2

Browse files
authored
Update src/iceberg/util/url_encoder.cc
1 parent 383a746 commit fcb91a2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/iceberg/util/url_encoder.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ constexpr int8_t FromHex(char c) {
4141
} // namespace
4242

4343
std::string UrlEncoder::Encode(std::string_view str_to_encode) {
44-
static const char* hex_chars = "0123456789ABCDEF";
44+
static const char* kHexChars = "0123456789ABCDEF";
4545
std::string result;
4646
result.reserve(str_to_encode.size() * 3 / 2 /* Heuristic reservation */);
4747

@@ -50,8 +50,8 @@ std::string UrlEncoder::Encode(std::string_view str_to_encode) {
5050
result += c;
5151
} else {
5252
result += '%';
53-
result += hex_chars[c >> 4];
54-
result += hex_chars[c & 0xF];
53+
result += kHexChars[c >> 4];
54+
result += kHexChars[c & 0xF];
5555
}
5656
}
5757

0 commit comments

Comments
 (0)