Use maybe_unused instead of Q_UNUSED

This commit is contained in:
Vitor Kiguchi
2020-08-15 10:55:54 -03:00
parent 62a69e0547
commit db0383fe0e
11 changed files with 26 additions and 42 deletions

View File

@ -57,13 +57,11 @@ public:
GPUCommandListModel::GPUCommandListModel(QObject* parent) : QAbstractListModel(parent) {}
int GPUCommandListModel::rowCount(const QModelIndex& parent) const {
Q_UNUSED(parent);
int GPUCommandListModel::rowCount([[maybe_unused]] const QModelIndex& parent) const {
return static_cast<int>(pica_trace.writes.size());
}
int GPUCommandListModel::columnCount(const QModelIndex& parent) const {
Q_UNUSED(parent);
int GPUCommandListModel::columnCount([[maybe_unused]] const QModelIndex& parent) const {
return 4;
}
@ -91,8 +89,8 @@ QVariant GPUCommandListModel::data(const QModelIndex& index, int role) const {
return QVariant();
}
QVariant GPUCommandListModel::headerData(int section, Qt::Orientation orientation, int role) const {
Q_UNUSED(orientation);
QVariant GPUCommandListModel::headerData(int section, [[maybe_unused]] Qt::Orientation orientation,
int role) const {
switch (role) {
case Qt::DisplayRole: {
switch (section) {