cleaned up some warnings
This commit is contained in:
parent
5d142ffe96
commit
76264eb814
3 changed files with 7 additions and 5 deletions
|
@ -10,7 +10,7 @@ CheckableTestModel::CheckableTestModel(QObject *parent)
|
||||||
|
|
||||||
int CheckableTestModel::rowCount(const QModelIndex &parent) const
|
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
|
int CheckableTestModel::columnCount(const QModelIndex &parent) const
|
||||||
|
@ -19,7 +19,7 @@ int CheckableTestModel::columnCount(const QModelIndex &parent) const
|
||||||
|
|
||||||
for (const auto &test : m_tests)
|
for (const auto &test : m_tests)
|
||||||
{
|
{
|
||||||
columnCount = std::max<int>(columnCount, test.size());
|
columnCount = std::max(columnCount, static_cast<int>(test.size()));
|
||||||
}
|
}
|
||||||
|
|
||||||
return columnCount;
|
return columnCount;
|
||||||
|
@ -181,7 +181,7 @@ const CheckableItem &CheckableTestModel::getItem(const QModelIndex &index) const
|
||||||
|
|
||||||
unsigned int CheckableTestModel::getPoints() const
|
unsigned int CheckableTestModel::getPoints() const
|
||||||
{
|
{
|
||||||
size_t points = 0;
|
unsigned int points = 0;
|
||||||
|
|
||||||
for (const auto &test : m_tests)
|
for (const auto &test : m_tests)
|
||||||
{
|
{
|
||||||
|
|
|
@ -30,6 +30,8 @@ unsigned int PRMap::lookup(const Age &age, const unsigned int &points)
|
||||||
return index - 1;
|
return index - 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
}();
|
}();
|
||||||
|
|
||||||
if (ageIndex >= m_PRs.at(points).size())
|
if (ageIndex >= m_PRs.at(points).size())
|
||||||
|
|
|
@ -38,7 +38,7 @@ V2SvkModel::V2SvkModel(QObject *parent)
|
||||||
|
|
||||||
unsigned int V2SvkModel::getV2Points()
|
unsigned int V2SvkModel::getV2Points()
|
||||||
{
|
{
|
||||||
size_t points = 0;
|
unsigned int points = 0;
|
||||||
|
|
||||||
for (auto testIndex : { 0, 1, 3, 5, 7, 8 })
|
for (auto testIndex : { 0, 1, 3, 5, 7, 8 })
|
||||||
{
|
{
|
||||||
|
@ -58,7 +58,7 @@ unsigned int V2SvkModel::getV2Points()
|
||||||
|
|
||||||
unsigned int V2SvkModel::getSvkPoints()
|
unsigned int V2SvkModel::getSvkPoints()
|
||||||
{
|
{
|
||||||
size_t points = 0;
|
unsigned int points = 0;
|
||||||
|
|
||||||
for (auto testIndex : { 2, 4, 6, 9, 10 })
|
for (auto testIndex : { 2, 4, 6, 9, 10 })
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue