mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-11-01 07:30:04 +00:00
General GCC compilation fixes
This commit is contained in:
parent
c7aba95233
commit
023688b746
19 changed files with 57 additions and 53 deletions
|
|
@ -45,7 +45,7 @@ QVariant ImGuiContextModel::data(const QModelIndex& index, int role) const
|
|||
}
|
||||
|
||||
const int row = index.row();
|
||||
if (row >= p->contexts_.size() || row < 0)
|
||||
if (row >= static_cast<int>(p->contexts_.size()) || row < 0)
|
||||
{
|
||||
return {};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@ int TreeItem::column_count() const
|
|||
|
||||
QVariant TreeItem::data(int column) const
|
||||
{
|
||||
if (0 <= column && column < p->itemData_.size())
|
||||
if (0 <= column && column < static_cast<int>(p->itemData_.size()))
|
||||
{
|
||||
return p->itemData_[column];
|
||||
}
|
||||
|
|
@ -152,7 +152,7 @@ bool TreeItem::InsertChildren(int position, int count, int columns)
|
|||
|
||||
bool TreeItem::SetData(int column, const QVariant& value)
|
||||
{
|
||||
if (column < 0 || column >= p->itemData_.size())
|
||||
if (column < 0 || column >= static_cast<int>(p->itemData_.size()))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue