Merge pull request #1204 from npwoods/remove_unnecessary_not
Removed unnecessary logical-not operation
This commit is contained in:
commit
c49f2c6a8d
@ -274,7 +274,7 @@ bool input_character(std::string &buffer, unicode_char unichar, F &&filter)
|
|||||||
result = true;
|
result = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if ((unichar >= ' ') && (!filter || filter(unichar)))
|
else if ((unichar >= ' ') && filter(unichar))
|
||||||
{
|
{
|
||||||
// append this character
|
// append this character
|
||||||
buffer += utf8_from_uchar(unichar);
|
buffer += utf8_from_uchar(unichar);
|
||||||
|
Loading…
Reference in New Issue
Block a user