GUI: Fix bug that same defines were added to list several times.
This commit is contained in:
parent
dbf097326d
commit
f2e3090a83
|
@ -349,7 +349,7 @@ Settings MainWindow::GetCppcheckSettings()
|
||||||
if (!incdir.endsWith("/"))
|
if (!incdir.endsWith("/"))
|
||||||
incdir += "/";
|
incdir += "/";
|
||||||
result._includePaths.push_back(incdir.toStdString());
|
result._includePaths.push_back(incdir.toStdString());
|
||||||
|
}
|
||||||
QStringList defines = pfile->GetDefines();
|
QStringList defines = pfile->GetDefines();
|
||||||
QString define;
|
QString define;
|
||||||
foreach(define, defines)
|
foreach(define, defines)
|
||||||
|
@ -359,7 +359,6 @@ Settings MainWindow::GetCppcheckSettings()
|
||||||
result.userDefines += define.toStdString();
|
result.userDefines += define.toStdString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
result._debug = false;
|
result._debug = false;
|
||||||
result._checkCodingStyle = true;
|
result._checkCodingStyle = true;
|
||||||
|
|
Loading…
Reference in New Issue