Fix shadow warning

This commit is contained in:
Daniel Marjamäki 2018-11-19 10:21:02 +01:00
parent 4d8a85ec4d
commit f5c2abaefa
2 changed files with 5 additions and 5 deletions

View File

@ -6,7 +6,7 @@ nullPointer:build/checkother.cpp
missingOverride
noValidConfiguration
useStlAlgorithm
shadowLocal
shadowFunction
*:gui/test/*
*:test/test.cxx

View File

@ -119,9 +119,9 @@ ProjectFileDialog::ProjectFileDialog(ProjectFile *projectFile, QWidget *parent)
}
// Platforms..
Platforms p;
Platforms platforms;
for (int i = 0; i < numberOfBuiltinPlatforms; i++)
mUI.mComboBoxPlatform->addItem(p.get(builtinPlatforms[i]).mTitle);
mUI.mComboBoxPlatform->addItem(platforms.get(builtinPlatforms[i]).mTitle);
QStringList platformFiles;
foreach (QString sp, searchPaths) {
if (sp.endsWith("/cfg"))
@ -133,8 +133,8 @@ ProjectFileDialog::ProjectFileDialog(ProjectFile *projectFile, QWidget *parent)
foreach (QFileInfo item, dir.entryInfoList()) {
const QString platformFile = item.fileName();
cppcheck::Platform p;
if (!p.loadPlatformFile(applicationFilePath.toStdString().c_str(), platformFile.toStdString()))
cppcheck::Platform plat2;
if (!plat2.loadPlatformFile(applicationFilePath.toStdString().c_str(), platformFile.toStdString()))
continue;
if (platformFiles.indexOf(platformFile) == -1)