Fix some code scanning issues.

foreach()-Loops.
This commit is contained in:
Friedemann Kleint
2010-02-01 14:00:07 +01:00
parent 0f6551c43f
commit f672bff338
22 changed files with 48 additions and 40 deletions

View File

@@ -477,7 +477,7 @@ void Qt4Project::updateCodeModel()
//foreach(const HeaderPath &hp, tc->systemHeaderPaths())
// qDebug()<<hp.path();
}
foreach (HeaderPath headerPath, allHeaderPaths) {
foreach (const HeaderPath &headerPath, allHeaderPaths) {
if (headerPath.kind() == HeaderPath::FrameworkHeaderPath)
predefinedFrameworkPaths.append(headerPath.path());
else
@@ -531,7 +531,7 @@ void Qt4Project::updateCodeModel()
allPrecompileHeaders.append(info.precompiledHeader);
// Add custom defines
foreach (const QString def, pro->variableValue(DefinesVar)) {
foreach (const QString &def, pro->variableValue(DefinesVar)) {
definedMacros += "#define ";
info.defines += "#define ";
const int index = def.indexOf(QLatin1Char('='));