mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 06:35:52 +08:00
Fix cppcheck warnings
This commit is contained in:
@@ -1030,14 +1030,11 @@ namespace BlackMisc::Simulation
|
||||
}
|
||||
const QMultiMap<int, CSimulatorInfo> cps(counts.countPerSimulator());
|
||||
CSimulatorInfo maxSim = cps.last();
|
||||
if (simulatorsRepresented > 0)
|
||||
const int count = cps.lastKey(); // how many elements
|
||||
const QList<CSimulatorInfo> infoWithMaxValues = cps.values(count); // all with the same counts
|
||||
for (const CSimulatorInfo &info : infoWithMaxValues)
|
||||
{
|
||||
const int count = cps.lastKey(); // how many elements
|
||||
const QList<CSimulatorInfo> infoWithMaxValues = cps.values(count); // all with the same counts
|
||||
for (const CSimulatorInfo &info : infoWithMaxValues)
|
||||
{
|
||||
maxSim.addSimulator(info);
|
||||
}
|
||||
maxSim.addSimulator(info);
|
||||
}
|
||||
return maxSim;
|
||||
}
|
||||
|
||||
@@ -148,7 +148,7 @@ namespace BlackMisc::Simulation::FsCommon
|
||||
if (m_shutdown) { return false; }
|
||||
loadedFiles++;
|
||||
bool s = this->loadFile(fn, rules);
|
||||
if (!s) { this->m_fileListWithProblems.append(fn); }
|
||||
if (!s) { filesWithProblems.append(fn); }
|
||||
}
|
||||
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user