aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cpptools/cppcurrentdocumentfilter.cpp
diff options
context:
space:
mode:
authorAndre Hartmann <aha_1980@gmx.de>2017-09-28 20:09:27 +0200
committerAndré Hartmann <aha_1980@gmx.de>2017-09-29 07:03:43 +0000
commit8730dbd4e6861e425ab8ecaa8890b313c21025c3 (patch)
treeac9bec99d64ca8171cb2451a2307609ffe37f598 /src/plugins/cpptools/cppcurrentdocumentfilter.cpp
parente0639d0696cdac7babc31893a7f5d65619ec7b85 (diff)
Locator: De-duplicate RegExp pattern generation
Change-Id: I3576e1507aebed15245e1f197995bfe9e345e32b Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/cpptools/cppcurrentdocumentfilter.cpp')
-rw-r--r--src/plugins/cpptools/cppcurrentdocumentfilter.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/plugins/cpptools/cppcurrentdocumentfilter.cpp b/src/plugins/cpptools/cppcurrentdocumentfilter.cpp
index 6f528a3f4f..440e53439f 100644
--- a/src/plugins/cpptools/cppcurrentdocumentfilter.cpp
+++ b/src/plugins/cpptools/cppcurrentdocumentfilter.cpp
@@ -67,9 +67,7 @@ QList<Core::LocatorFilterEntry> CppCurrentDocumentFilter::matchesFor(
QList<Core::LocatorFilterEntry> goodEntries;
QList<Core::LocatorFilterEntry> betterEntries;
- const QRegularExpression regexp = containsWildcard(entry)
- ? createWildcardRegExp(entry) : CamelHumpMatcher::createCamelHumpRegExp(entry);
-
+ const QRegularExpression regexp = createRegExp(entry);
if (!regexp.isValid())
return goodEntries;