Solve some unreferenced parameter warnings

(C4100: unreferenced formal parameter)
This commit is contained in:
Vitor Kiguchi
2020-07-24 01:35:52 -03:00
parent d87fee05a9
commit ecb2541a93
10 changed files with 22 additions and 3 deletions

View File

@ -58,10 +58,12 @@ public:
GPUCommandListModel::GPUCommandListModel(QObject* parent) : QAbstractListModel(parent) {}
int GPUCommandListModel::rowCount(const QModelIndex& parent) const {
Q_UNUSED(parent);
return static_cast<int>(pica_trace.writes.size());
}
int GPUCommandListModel::columnCount(const QModelIndex& parent) const {
Q_UNUSED(parent);
return 4;
}
@ -90,6 +92,7 @@ QVariant GPUCommandListModel::data(const QModelIndex& index, int role) const {
}
QVariant GPUCommandListModel::headerData(int section, Qt::Orientation orientation, int role) const {
Q_UNUSED(orientation);
switch (role) {
case Qt::DisplayRole: {
switch (section) {