Commit e0eac582 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh

Core: Avoid unnecessary QFileInfo in OpenDocumentsFilter

Change-Id: I93416ba203b543dd307f1b7db84c8c481aab1ede
Reviewed-by: default avatarEike Ziller <eike.ziller@theqtcompany.com>
parent 2ffd0e2d
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment