diff options
author | Adrian Negreanu <adrian.m.negreanu@intel.com> | 2014-02-27 18:03:06 (GMT) |
---|---|---|
committer | Adrian Negreanu <adrian.m.negreanu@intel.com> | 2014-02-27 18:04:46 (GMT) |
commit | 6d8c3184fadb1834223236b13471797089e4a004 (patch) | |
tree | 59072cc00d35d43524ad9ce2912497764a0bf892 | |
parent | d7f9bbedaa4b4fcc0253470d522149a2307d1020 (diff) | |
download | Doxygen-6d8c3184fadb1834223236b13471797089e4a004.zip Doxygen-6d8c3184fadb1834223236b13471797089e4a004.tar.gz Doxygen-6d8c3184fadb1834223236b13471797089e4a004.tar.bz2 |
util/patternMatch: break when pattern is found
Signed-off-by: Adrian Negreanu <adrian.m.negreanu@intel.com>
-rw-r--r-- | src/util.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util.cpp b/src/util.cpp index 136ee80..55b5d1e 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -7445,7 +7445,7 @@ bool patternMatch(const QFileInfo &fi,const QStrList *patList) QCString pattern; for (it.toFirst();(pattern=it.current());++it) { - if (!pattern.isEmpty() && !found) + if (!pattern.isEmpty()) { int i=pattern.find('='); if (i!=-1) pattern=pattern.left(i); // strip of the extension specific filter name @@ -7458,6 +7458,7 @@ bool patternMatch(const QFileInfo &fi,const QStrList *patList) found = found || re.match(fi.fileName().data())!=-1 || re.match(fi.filePath().data())!=-1 || re.match(fi.absFilePath().data())!=-1; + if (found) break; //printf("Matching `%s' against pattern `%s' found=%d\n", // fi->fileName().data(),pattern.data(),found); } |