desktop-widgets/statistics: Change Q_UNUSED to no parameter name

C++ permits use of parameters without name, which signals unused

Signed-off-by: Jan Iversen <jani@apache.org>
This commit is contained in:
jan Iversen 2018-05-21 18:12:27 +02:00 committed by Dirk Hohndel
parent 2b84482787
commit f92daa456a

View file

@ -22,18 +22,13 @@ void YearlyStatisticsWidget::setModel(YearlyStatisticsModel *m)
modelRowsInserted(QModelIndex(),0,m_model->rowCount()-1);
}
void YearlyStatisticsWidget::modelRowsInserted(const QModelIndex &index, int first, int last)
void YearlyStatisticsWidget::modelRowsInserted(const QModelIndex&, int, int)
{
Q_UNUSED(index)
Q_UNUSED(first)
Q_UNUSED(last)
// stub
}
void YearlyStatisticsWidget::modelDataChanged(const QModelIndex &topLeft, const QModelIndex& bottomRight)
void YearlyStatisticsWidget::modelDataChanged(const QModelIndex&, const QModelIndex&)
{
Q_UNUSED(topLeft);
Q_UNUSED(bottomRight);
scene()->clear();
modelRowsInserted(QModelIndex(),0,m_model->rowCount()-1);
}