make defaultNonUrlEncodeChars const (#1502)

This commit is contained in:
JinmingHu 2021-01-29 09:55:04 +08:00 committed by GitHub
parent 3b9a465a4f
commit a858a77ac0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -263,7 +263,7 @@ namespace Azure { namespace Core { namespace Http {
// List of default non-URL-encode chars. While URL encoding a string, do not escape any chars in
// this set.
static std::unordered_set<unsigned char> defaultNonUrlEncodeChars;
const static std::unordered_set<unsigned char> defaultNonUrlEncodeChars;
public:
/**

View File

@ -216,7 +216,7 @@ std::string Url::GetAbsoluteUrl() const
return full_url;
}
std::unordered_set<unsigned char> Url::defaultNonUrlEncodeChars
const std::unordered_set<unsigned char> Url::defaultNonUrlEncodeChars
= {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q',
'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H',
'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y',