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

@ -29,19 +29,17 @@ using nihstro::SwizzlePattern;
GraphicsVertexShaderModel::GraphicsVertexShaderModel(GraphicsVertexShaderWidget* parent)
: QAbstractTableModel(parent), par(parent) {}
int GraphicsVertexShaderModel::columnCount(const QModelIndex& parent) const {
Q_UNUSED(parent);
int GraphicsVertexShaderModel::columnCount([[maybe_unused]] const QModelIndex& parent) const {
return 3;
}
int GraphicsVertexShaderModel::rowCount(const QModelIndex& parent) const {
Q_UNUSED(parent);
int GraphicsVertexShaderModel::rowCount([[maybe_unused]] const QModelIndex& parent) const {
return static_cast<int>(par->info.code.size());
}
QVariant GraphicsVertexShaderModel::headerData(int section, Qt::Orientation orientation,
QVariant GraphicsVertexShaderModel::headerData(int section,
[[maybe_unused]] Qt::Orientation orientation,
int role) const {
Q_UNUSED(orientation);
switch (role) {
case Qt::DisplayRole: {
if (section == 0) {