Cleanup: Fix Warnings in MacOS build.

Signed-off-by: Michael Keller <github@ike.ch>
This commit is contained in:
Michael Keller 2024-09-26 19:09:54 +12:00
parent 784eddc166
commit 8a64d1f4b9
10 changed files with 15 additions and 20 deletions

View file

@ -6,7 +6,7 @@
#include "core/event.h"
class DiveCartesianAxis;
class DivePixmaps;
struct DivePixmaps;
struct event;
struct plot_info;

View file

@ -20,7 +20,7 @@ class DiveGasPressureItem;
class DiveHeartrateItem;
class DiveMeanDepthItem;
class DivePercentageItem;
class DivePixmaps;
struct DivePixmaps;
class DivePlannerPointsModel;
class DiveProfileItem;
class DiveReportedCeiling;

View file

@ -586,7 +586,7 @@ void ProfileWidget2::contextMenuEvent(QContextMenuEvent *event)
if (DiveEventItem *item = dynamic_cast<DiveEventItem *>(sceneItem)) {
m.addAction(tr("Remove event"), [this,item] { removeEvent(item); });
m.addAction(tr("Hide event"), [this, item] { hideEvent(item); });
m.addAction(tr("Hide event"), [this, item] { hideOneEvent(item); });
m.addAction(tr("Hide events of type '%1'").arg(event_type_name(item->ev)),
[this, item] { hideEventType(item); });
if (item->ev.type == SAMPLE_EVENT_BOOKMARK)
@ -678,7 +678,7 @@ void ProfileWidget2::renameCurrentDC()
Command::editDeviceNickname(currentdc, newName);
}
void ProfileWidget2::hideEvent(DiveEventItem *item)
void ProfileWidget2::hideOneEvent(DiveEventItem *item)
{
if (!d)
return;

View file

@ -126,7 +126,7 @@ private:
void splitDive(int seconds);
void addSetpointChange(int seconds);
void removeEvent(DiveEventItem *item);
void hideEvent(DiveEventItem *item);
void hideOneEvent(DiveEventItem *item);
void hideEventType(DiveEventItem *item);
void editName(DiveEventItem *item);
void unhideEvents();