diff options
author | Andre Hartmann <aha_1980@gmx.de> | 2017-09-28 20:09:27 +0200 |
---|---|---|
committer | André Hartmann <aha_1980@gmx.de> | 2017-09-29 07:03:43 +0000 |
commit | 8730dbd4e6861e425ab8ecaa8890b313c21025c3 (patch) | |
tree | ac9bec99d64ca8171cb2451a2307609ffe37f598 /src/plugins/coreplugin/locator/basefilefilter.cpp | |
parent | e0639d0696cdac7babc31893a7f5d65619ec7b85 (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/coreplugin/locator/basefilefilter.cpp')
-rw-r--r-- | src/plugins/coreplugin/locator/basefilefilter.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/coreplugin/locator/basefilefilter.cpp b/src/plugins/coreplugin/locator/basefilefilter.cpp index 86fe5078f85..c992b883738 100644 --- a/src/plugins/coreplugin/locator/basefilefilter.cpp +++ b/src/plugins/coreplugin/locator/basefilefilter.cpp @@ -100,9 +100,8 @@ QList<LocatorFilterEntry> BaseFileFilter::matchesFor(QFutureInterface<LocatorFil QList<LocatorFilterEntry> goodEntries; const QString entry = QDir::fromNativeSeparators(origEntry); const EditorManager::FilePathInfo fp = EditorManager::splitLineAndColumnNumber(entry); - const QRegularExpression regexp = containsWildcard(entry) - ? createWildcardRegExp(entry) : CamelHumpMatcher::createCamelHumpRegExp(entry); + const QRegularExpression regexp = createRegExp(entry); if (!regexp.isValid()) { d->m_current.clear(); // free memory return betterEntries; |