1
0
Fork 0

Maintenance: DefaultAircraftLocator

type correctness during comparison
This commit is contained in:
Scott Giese 2021-02-20 22:50:56 -06:00
parent 3c694ddb5b
commit 4ce8be87a0

View file

@ -146,7 +146,7 @@ int WeatherScenariosModel::rowCount(const QModelIndex&) const
QVariant WeatherScenariosModel::data(const QModelIndex &index, int role) const
{
const int row = index.row();
if ((row < 0) || (row >= m_scenarios.size())) {
if ((row < 0) || (static_cast<std::vector<WeatherScenariosModel::WeatherScenario>::size_type>(row) >= m_scenarios.size())) {
return QVariant();
}