From 65a151e0357c07fe395c9c93863aec9baba7f707 Mon Sep 17 00:00:00 2001 From: Kurt Hindenburg Date: Mon, 12 Oct 2015 09:33:52 -0400 Subject: [PATCH] simplify determining empty string --- src/Filter.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Filter.cpp b/src/Filter.cpp index 8442b960..eff72a38 100644 --- a/src/Filter.cpp +++ b/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) {