CMakeProjectManager: Limit the usage of std::make_pair

Make the code less verbose.

Change-Id: I8dc194f0cb4ed38c4c117482a7011019444edc40
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
Jarek Kobus
2022-09-30 14:58:22 +02:00
parent 55efe40a58
commit 5ab100a2b9
3 changed files with 9 additions and 11 deletions

View File

@@ -699,7 +699,7 @@ void setupLocationInfoForTargets(CMakeProjectNode *rootNode, const QList<CMakeBu
QVector<FolderNode::LocationInfo> result;
for (const FolderNode::LocationInfo &i : bt) {
int count = locations.count();
locations.insert(std::make_pair(i.path, i.line));
locations.insert({i.path, i.line});
if (count != locations.count()) {
result.append(i);
}