summaryrefslogtreecommitdiffstats
path: root/profile-widget/diveprofileitem.cpp
diff options
context:
space:
mode:
authorGravatar jan Iversen <jani@libreoffice.org>2018-05-22 08:06:59 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-05-24 08:34:14 -0700
commitce800310a4a1ff62b8b5e5eff8ae6ec69c3d2216 (patch)
treed0858c725be0fd5799e360f9a310c87749b2e70e /profile-widget/diveprofileitem.cpp
parentcb9951a48497cdf1d8f9580ab8818fe29e2d5e75 (diff)
downloadsubsurface-ce800310a4a1ff62b8b5e5eff8ae6ec69c3d2216.tar.gz
profile-widget: replace (void) with no parameter name
Unused parameters in C++ are "silenced" by removing the name. Signed-off-by: Jan Iversen <jani@apache.org>
Diffstat (limited to 'profile-widget/diveprofileitem.cpp')
-rw-r--r--profile-widget/diveprofileitem.cpp5
1 files 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<ProfileWidget2 *>(scene()->views().first())->currentState;
if (currState == ProfileWidget2::PLAN) {
plot_data *entry = dataModel->data().entry;