Merge pull request #1204 from npwoods/remove_unnecessary_not

Removed unnecessary logical-not operation
This commit is contained in:
Vas Crabb 2016-08-08 10:23:37 +10:00 committed by GitHub
commit c49f2c6a8d

View File

@ -274,7 +274,7 @@ bool input_character(std::string &buffer, unicode_char unichar, F &&filter)
result = true;
}
}
else if ((unichar >= ' ') && (!filter || filter(unichar)))
else if ((unichar >= ' ') && filter(unichar))
{
// append this character
buffer += utf8_from_uchar(unichar);