util/UriUtil: make schemes
array static
This commit is contained in:
@@ -167,7 +167,11 @@ gcc_pure
|
|||||||
static const char *
|
static const char *
|
||||||
SkipUriScheme(const char *uri) noexcept
|
SkipUriScheme(const char *uri) noexcept
|
||||||
{
|
{
|
||||||
const char *const schemes[] = { "http://", "https://", "ftp://" };
|
static const char *const schemes[] = {
|
||||||
|
"http://", "https://",
|
||||||
|
"ftp://",
|
||||||
|
};
|
||||||
|
|
||||||
for (auto scheme : schemes) {
|
for (auto scheme : schemes) {
|
||||||
auto result = StringAfterPrefixCaseASCII(uri, scheme);
|
auto result = StringAfterPrefixCaseASCII(uri, scheme);
|
||||||
if (result != nullptr)
|
if (result != nullptr)
|
||||||
|
Reference in New Issue
Block a user