forked from qt-creator/qt-creator
CMakePM: Fix compilation with Qt 5.6
Change-Id: I9c1b924c29b6f1531322987ce77a577353aea300 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
committed by
Christian Stenger
parent
0e7fc0ef2e
commit
b4e8dba26a
@@ -219,7 +219,7 @@ void ServerModeReader::generateProjectTree(CMakeProjectNode *root)
|
||||
knownFiles.insert((*it)->filePath());
|
||||
|
||||
QList<FileNode *> fileGroupNodes = m_cmakeInputsFileNodes;
|
||||
for (const FileGroup *fg : qAsConst(m_fileGroups)) {
|
||||
foreach (const FileGroup *fg, m_fileGroups) {
|
||||
for (const FileName &s : fg->sources) {
|
||||
const int oldCount = knownFiles.count();
|
||||
knownFiles.insert(s);
|
||||
@@ -234,7 +234,7 @@ QSet<Core::Id> ServerModeReader::updateCodeModel(CppTools::ProjectPartBuilder &p
|
||||
{
|
||||
QSet<Core::Id> languages;
|
||||
int counter = 0;
|
||||
for (const FileGroup *fg : qAsConst(m_fileGroups)) {
|
||||
foreach (const FileGroup *fg, m_fileGroups) {
|
||||
++counter;
|
||||
const QString defineArg
|
||||
= transform(fg->defines, [](const QString &s) -> QString { return QString::fromLatin1("#define ") + s; }).join('\n');
|
||||
|
||||
Reference in New Issue
Block a user