cleaned up some warnings

pull/12/head
mandlm 2018-06-26 15:14:25 +02:00
parent 5d142ffe96
commit 76264eb814
3 changed files with 7 additions and 5 deletions

View File

@ -10,7 +10,7 @@ CheckableTestModel::CheckableTestModel(QObject *parent)
int CheckableTestModel::rowCount(const QModelIndex &parent) const
{
return m_tests.size();
return static_cast<int>(m_tests.size());
}
int CheckableTestModel::columnCount(const QModelIndex &parent) const
@ -19,7 +19,7 @@ int CheckableTestModel::columnCount(const QModelIndex &parent) const
for (const auto &test : m_tests)
{
columnCount = std::max<int>(columnCount, test.size());
columnCount = std::max(columnCount, static_cast<int>(test.size()));
}
return columnCount;
@ -181,7 +181,7 @@ const CheckableItem &CheckableTestModel::getItem(const QModelIndex &index) const
unsigned int CheckableTestModel::getPoints() const
{
size_t points = 0;
unsigned int points = 0;
for (const auto &test : m_tests)
{

View File

@ -30,6 +30,8 @@ unsigned int PRMap::lookup(const Age &age, const unsigned int &points)
return index - 1;
}
}
return 0;
}();
if (ageIndex >= m_PRs.at(points).size())

View File

@ -38,7 +38,7 @@ V2SvkModel::V2SvkModel(QObject *parent)
unsigned int V2SvkModel::getV2Points()
{
size_t points = 0;
unsigned int points = 0;
for (auto testIndex : { 0, 1, 3, 5, 7, 8 })
{
@ -58,7 +58,7 @@ unsigned int V2SvkModel::getV2Points()
unsigned int V2SvkModel::getSvkPoints()
{
size_t points = 0;
unsigned int points = 0;
for (auto testIndex : { 2, 4, 6, 9, 10 })
{