Fixed indentation

Replaced tabs with spaces.
This commit is contained in:
Veloman Yunkan 2023-01-17 19:24:26 +04:00
parent 82d477009d
commit aa2e443eb8
1 changed files with 5 additions and 5 deletions

View File

@ -269,15 +269,15 @@ std::string kiwix::urlDecode(const std::string& value, bool component)
int iHi = hexToInt(hi); int iHi = hexToInt(hi);
int iLo = hexToInt(lo); int iLo = hexToInt(lo);
if (iHi < 0 || iLo < 0) { if (iHi < 0 || iLo < 0) {
// Invalid escape sequence // Invalid escape sequence
os << '%' << hi << lo; os << '%' << hi << lo;
continue; continue;
} }
char c = (char)(iHi << 4 | iLo); char c = (char)(iHi << 4 | iLo);
if (!component && isReservedUrlChar(c)) { if (!component && isReservedUrlChar(c)) {
os << '%' << hi << lo; os << '%' << hi << lo;
} else { } else {
os << c; os << c;
} }
} else { } else {
os << *it; os << *it;