Merge pull request #892 from zawata/another-warning-fixes

Yet More Warning Fixes
This commit is contained in:
Yuri Kunde Schlesner 2015-07-25 12:50:32 -07:00
commit 9a0f9f12cd
9 changed files with 24 additions and 24 deletions

View file

@ -170,7 +170,7 @@ GPUCommandListModel::GPUCommandListModel(QObject* parent) : QAbstractListModel(p
}
int GPUCommandListModel::rowCount(const QModelIndex& parent) const {
return pica_trace.writes.size();
return static_cast<int>(pica_trace.writes.size());
}
int GPUCommandListModel::columnCount(const QModelIndex& parent) const {

View file

@ -34,7 +34,7 @@ int GraphicsVertexShaderModel::columnCount(const QModelIndex& parent) const {
}
int GraphicsVertexShaderModel::rowCount(const QModelIndex& parent) const {
return info.code.size();
return static_cast<int>(info.code.size());
}
QVariant GraphicsVertexShaderModel::headerData(int section, Qt::Orientation orientation, int role) const {

View file

@ -74,7 +74,7 @@ int ProfilerModel::rowCount(const QModelIndex& parent) const
if (parent.isValid()) {
return 0;
} else {
return results.time_per_category.size() + 2;
return static_cast<int>(results.time_per_category.size() + 2);
}
}