forked from Public/monero-gui
fix multiple minor issues (c-style casts, default branch, etc.)
This commit is contained in:
@@ -71,6 +71,8 @@ QVariant AddressBookModel::data(const QModelIndex &index, int role) const
|
||||
// Qt doesnt support size_t overload type casting
|
||||
result.setValue(row.getRowId());
|
||||
break;
|
||||
default:
|
||||
qCritical() << "Unimplemented role " << role;
|
||||
}
|
||||
});
|
||||
if (!found) {
|
||||
|
||||
@@ -53,7 +53,7 @@ int SubaddressAccountModel::rowCount(const QModelIndex &) const
|
||||
|
||||
QVariant SubaddressAccountModel::data(const QModelIndex &index, int role) const
|
||||
{
|
||||
if (!index.isValid() || index.row() < 0 || (unsigned)index.row() >= m_subaddressAccount->count())
|
||||
if (!index.isValid() || index.row() < 0 || static_cast<quint64>(index.row()) >= m_subaddressAccount->count())
|
||||
return {};
|
||||
|
||||
QVariant result;
|
||||
|
||||
@@ -54,7 +54,7 @@ int SubaddressModel::rowCount(const QModelIndex &) const
|
||||
|
||||
QVariant SubaddressModel::data(const QModelIndex &index, int role) const
|
||||
{
|
||||
if (!index.isValid() || index.row() < 0 || (unsigned)index.row() >= m_subaddress->count())
|
||||
if (!index.isValid() || index.row() < 0 || static_cast<quint64>(index.row()) >= m_subaddress->count())
|
||||
return {};
|
||||
|
||||
QVariant result;
|
||||
|
||||
Reference in New Issue
Block a user