From ce800310a4a1ff62b8b5e5eff8ae6ec69c3d2216 Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Tue, 22 May 2018 08:06:59 +0200 Subject: profile-widget: replace (void) with no parameter name Unused parameters in C++ are "silenced" by removing the name. Signed-off-by: Jan Iversen --- profile-widget/diveprofileitem.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/profile-widget/diveprofileitem.cpp b/profile-widget/diveprofileitem.cpp index 9f648c2f0..4e7cc0a36 100644 --- a/profile-widget/diveprofileitem.cpp +++ b/profile-widget/diveprofileitem.cpp @@ -163,7 +163,6 @@ int DiveProfileItem::maxCeiling(int row) void DiveProfileItem::modelDataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight) { bool eventAdded = false; - (void)eventAdded; if (!shouldCalculateStuff(topLeft, bottomRight)) return; @@ -175,7 +174,9 @@ void DiveProfileItem::modelDataChanged(const QModelIndex &topLeft, const QModelI reported_ceiling_in_red = prefs.redceiling; profileColor = getColor(DEPTH_BOTTOM); -#ifndef SUBSURFACE_MOBILE +#ifdef SUBSURFACE_MOBILE + Q_UNUSED(eventAdded); +#else int currState = qobject_cast(scene()->views().first())->currentState; if (currState == ProfileWidget2::PLAN) { plot_data *entry = dataModel->data().entry; -- cgit v1.2.3-70-g09d2