forked from qt-creator/qt-creator
Various plugins: Limit the usage of qMakePair
Change-Id: I9113dd47fb4f9026f3a732aebbd0aee31651b727 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user