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

@ -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;