Cppcheck and unit test fixes

This commit is contained in:
Klaus Basan
2018-07-31 21:41:34 +02:00
parent fe99eb0fed
commit dd687b7d90
8 changed files with 30 additions and 15 deletions

View File

@@ -658,9 +658,10 @@ namespace BlackCore
{
Q_UNUSED(mode);
CAircraftModelList usedModelSet;
static const bool NoZeroScores = true;
static const bool PreferColorLiveries = true;
static const bool DoNotMindAboutColorLiveries = false;
// cppcheck-suppress variableScope
static constexpr bool DoNotMindAboutColorLiveries = false;
static constexpr bool NoZeroScores = true;
static constexpr bool PreferColorLiveries = true;
// VTOL
ScoredModels map;

View File

@@ -1051,6 +1051,7 @@ namespace BlackCore
}
}
Q_UNUSED(haveRequestedElevation);
return correctedSituation;
}