From 065af62f59c2244cf0c80e54218692c95dd7c0cd Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Mon, 21 May 2018 18:20:29 +0200 Subject: profile-widget: Change Q_UNUSED to no parameter name C++ permits use of parameters without name, which signals unused Signed-off-by: Jan Iversen --- profile-widget/divecartesianaxis.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'profile-widget/divecartesianaxis.cpp') diff --git a/profile-widget/divecartesianaxis.cpp b/profile-widget/divecartesianaxis.cpp index e10e5112c..062ed78fc 100644 --- a/profile-widget/divecartesianaxis.cpp +++ b/profile-widget/divecartesianaxis.cpp @@ -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); } -- cgit v1.2.3-70-g09d2