Commit c66c0373 authored by Igor Kushnir's avatar Igor Kushnir

Don't call a virtual function in a loop

GIT_SILENT
parent 863024ac
......@@ -72,9 +72,10 @@ ParseProjectJob::ParseProjectJob(IProject* project, bool forceUpdate, bool parse
} else {
// In case we don't want to parse the whole project, still add all currently open files that belong to the project to the background-parser
const auto documents = ICore::self()->documentController()->openDocuments();
const auto projectFiles = project->fileSet();
for (auto* document : documents) {
const auto path = IndexedString(document->url());
if (project->fileSet().contains(path)) {
if (projectFiles.contains(path)) {
d->filesToParse.insert(path);
}
}
......
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