mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 23:10:05 +00:00
Placefile fixes for Linux/gcc
This commit is contained in:
parent
36dd2945b0
commit
0064733679
2 changed files with 6 additions and 3 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue