profile-widget: 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:20:29 +02:00 committed by Dirk Hohndel
parent f92daa456a
commit 065af62f59
7 changed files with 22 additions and 67 deletions

View file

@ -99,9 +99,8 @@ void DiveCartesianAxis::setOrientation(Orientation o)
changed = true;
}
QColor DiveCartesianAxis::colorForValue(double value)
QColor DiveCartesianAxis::colorForValue(double)
{
Q_UNUSED(value)
return QColor(Qt::black);
}
@ -355,9 +354,8 @@ QString DepthAxis::textForValue(double value)
return get_depth_string(lrint(value), false, false);
}
QColor DepthAxis::colorForValue(double value)
QColor DepthAxis::colorForValue(double)
{
Q_UNUSED(value);
return QColor(Qt::red);
}
@ -384,9 +382,8 @@ TimeAxis::TimeAxis(ProfileWidget2 *widget) : DiveCartesianAxis(widget)
{
}
QColor TimeAxis::colorForValue(double value)
QColor TimeAxis::colorForValue(double)
{
Q_UNUSED(value);
return QColor(Qt::blue);
}