mirror of https://github.com/kiwix/libkiwix.git
Removed unnecessary qualifier
This commit is contained in:
parent
931e95f391
commit
ff23b28e7c
|
@ -48,13 +48,13 @@ ByteRange ByteRange::parse(std::string rangeStr)
|
||||||
if (iss >> start) {
|
if (iss >> start) {
|
||||||
if ( start < 0 ) {
|
if ( start < 0 ) {
|
||||||
if ( iss.eof() )
|
if ( iss.eof() )
|
||||||
byteRange = ByteRange(ByteRange::PARSED, start, end);
|
byteRange = ByteRange(PARSED, start, end);
|
||||||
} else {
|
} else {
|
||||||
char c;
|
char c;
|
||||||
if (iss >> c && c=='-') {
|
if (iss >> c && c=='-') {
|
||||||
iss >> end; // if this fails, end is not modified, which is OK
|
iss >> end; // if this fails, end is not modified, which is OK
|
||||||
if (iss.eof() && start <= end)
|
if (iss.eof() && start <= end)
|
||||||
byteRange = ByteRange(ByteRange::PARSED, start, end);
|
byteRange = ByteRange(PARSED, start, end);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue