Placefile fixes for Linux/gcc

This commit is contained in:
Dan Paulat 2023-07-23 08:45:14 -05:00
parent 36dd2945b0
commit 0064733679
2 changed files with 6 additions and 3 deletions

View file

@ -74,7 +74,7 @@ Qt::ItemFlags PlacefileModel::flags(const QModelIndex& index) const
QVariant PlacefileModel::data(const QModelIndex& index, int role) const
{
if (!index.isValid() || index.row() < 0 ||
index.row() >= p->placefileNames_.size())
static_cast<std::size_t>(index.row()) >= p->placefileNames_.size())
{
return QVariant();
}