Commit ff46e679 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

CMake: Use for instead of foreach

Change-Id: I4e2c929414cf1f7b052ae9f6846f43ae20fcee4c
Reviewed-by: Tim Jenssen's avatarTim Jenssen <>
parent 7a388e7b
......@@ -40,6 +40,7 @@
#include <projectexplorer/taskhub.h>
#include <utils/algorithm.h>
#include <utils/asconst.h>
#include <utils/qtcassert.h>
#include <utils/qtcprocess.h>
......@@ -294,7 +295,7 @@ void ServerModeReader::generateProjectTree(CMakeProjectNode *root,
void ServerModeReader::updateCodeModel(CppTools::RawProjectParts &rpps)
int counter = 0;
foreach (const FileGroup *fg, m_fileGroups) {
for (const FileGroup *fg : Utils::asConst(m_fileGroups)) {
const QString defineArg
= transform(fg->defines, [](const QString &s) -> QString {
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