diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2015-02-25 15:01:34 +0200 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2015-02-25 15:00:36 +0000 |
commit | e0eac5824bf911eff6d87d8b87ed057ee058fc4c (patch) | |
tree | 55a544d1c23cc848b85e0d870f209a2dccdd5566 /src | |
parent | 2ffd0e2d0da5dbefd73a3124e90488c4490766ef (diff) | |
download | qt-creator-e0eac5824bf911eff6d87d8b87ed057ee058fc4c.tar.gz |
Core: Avoid unnecessary QFileInfo in OpenDocumentsFilter
Change-Id: I93416ba203b543dd307f1b7db84c8c481aab1ede
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/coreplugin/locator/opendocumentsfilter.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/coreplugin/locator/opendocumentsfilter.cpp b/src/plugins/coreplugin/locator/opendocumentsfilter.cpp index 8be5d2b666..d23ee536df 100644 --- a/src/plugins/coreplugin/locator/opendocumentsfilter.cpp +++ b/src/plugins/coreplugin/locator/opendocumentsfilter.cpp @@ -78,9 +78,8 @@ QList<LocatorFilterEntry> OpenDocumentsFilter::matchesFor(QFutureInterface<Locat continue; QString displayName = editorEntry.displayName(); if (regexp.exactMatch(displayName)) { - QFileInfo fi(fileName); LocatorFilterEntry fiEntry(this, displayName, QString(fileName + lineNoSuffix)); - fiEntry.extraInfo = FileUtils::shortNativePath(FileName(fi)); + fiEntry.extraInfo = FileUtils::shortNativePath(FileName::fromString(fileName)); fiEntry.fileName = fileName; QList<LocatorFilterEntry> &category = displayName.startsWith(entry, caseSensitivityForPrefix) ? betterEntries : goodEntries; |