simplify determining empty string

wilder-portage
Kurt Hindenburg 11 years ago
parent c5d6b82e08
commit 65a151e035
  1. 3
      src/Filter.cpp

@ -335,8 +335,7 @@ void RegExpFilter::process()
// ignore any regular expressions which match an empty string.
// otherwise the while loop below will run indefinitely
static const QString emptyString("");
if (_searchText.exactMatch(emptyString))
if (_searchText.isEmpty())
return;
while (pos >= 0) {

Loading…
Cancel
Save