Various plugins: Limit the usage of qMakePair

Change-Id: I9113dd47fb4f9026f3a732aebbd0aee31651b727
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Jarek Kobus
2022-09-30 11:12:51 +02:00
parent 00741a7216
commit 738803a4da
6 changed files with 12 additions and 15 deletions

View File

@@ -99,7 +99,7 @@ void ManagerPrivate::resetParser()
QHash<FilePath, QPair<QString, FilePaths>> projectData;
for (const Project *project : SessionManager::projects()) {
projectData.insert(project->projectFilePath(),
qMakePair(project->displayName(), project->files(Project::SourceFiles)));
{project->displayName(), project->files(Project::SourceFiles)});
}
QMetaObject::invokeMethod(m_parser, [this, projectData]() {
m_parser->resetData(projectData);