BString::Split(): Fix check
This commit is contained in:
parent
efcb3de14e
commit
1c521f0b31
@ -546,7 +546,7 @@ BString::Split(const char* separator, bool noEmptyStrings,
|
||||
if (endIndex > index || !noEmptyStrings) {
|
||||
BString toAppend(String() + index, endIndex - index);
|
||||
if (toAppend.Length() != endIndex - index
|
||||
|| _list.Add(toAppend)) {
|
||||
|| !_list.Add(toAppend)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user