logic: Improved code view performance by removing duplicate TokenLocation check

This commit is contained in:
Eberhard Graether
2016-12-07 21:04:19 +01:00
parent a3428be65c
commit 6575485609
2 changed files with 6 additions and 32 deletions
+1 -1
View File
@@ -966,7 +966,7 @@ std::shared_ptr<TokenLocationCollection> PersistentStorage::getTokenLocationsFor
collection->addTokenLocation(
location.id,
occurrences.elementId,
m_sqliteStorage.getFileById(location.fileNodeId).filePath, // TODO: optimize: only once per file!
getFileNodePath(location.fileNodeId),
location.startLine,
location.startCol,
location.endLine,