Fixed return value of ArgumentParser::find() for when the search string is not found, the correct value is now -1.
This commit is contained in:
@@ -230,7 +230,7 @@ int ArgumentParser::find(const std::string& str) const
|
||||
return pos;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
return -1;
|
||||
}
|
||||
|
||||
bool ArgumentParser::match(int pos, const std::string& str) const
|
||||
|
||||
Reference in New Issue
Block a user