mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
cb9951a484
commit
ce800310a4
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue