mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-30 05:47:57 +03:00
Don't check bounds when the type is unambiguously a char
This commit is contained in:
parent
c6470f33d3
commit
f23bd51175
4 changed files with 12 additions and 30 deletions
|
@ -311,7 +311,7 @@ void Settings::SettingsFileParser::saveSettingsFile(const std::string& file, con
|
|||
|
||||
bool Settings::SettingsFileParser::skipWhiteSpace(size_t& i, std::string& str)
|
||||
{
|
||||
while (i < str.size() && str[i] >= 0 && str[i] <= 255 && std::isspace(str[i], std::locale::classic()))
|
||||
while (i < str.size() && std::isspace(str[i], std::locale::classic()))
|
||||
{
|
||||
++i;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue