summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/tab-widgets/maintab.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-07-19 19:26:59 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-10-11 16:22:27 -0700
commit61467ea0d59b04f141a68452ee16c70760421d72 (patch)
tree6232d18a2c513bac988bbcb7ec262d0e96ed15a0 /desktop-widgets/tab-widgets/maintab.h
parent403dd5a8918d4acab33cdd0a400570003244ca5e (diff)
downloadsubsurface-61467ea0d59b04f141a68452ee16c70760421d72.tar.gz
Cleanup: let MainTab::updateDiveSite() take dive * instead of id
Both callers have a dive * and transform that into an id, the callee transforms it right back to the dive *. Simply pass the dive directly. This will allow us to use the function for dives that have not yet been added. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/tab-widgets/maintab.h')
-rw-r--r--desktop-widgets/tab-widgets/maintab.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop-widgets/tab-widgets/maintab.h b/desktop-widgets/tab-widgets/maintab.h
index 238c060f8..d56661e77 100644
--- a/desktop-widgets/tab-widgets/maintab.h
+++ b/desktop-widgets/tab-widgets/maintab.h
@@ -125,7 +125,7 @@ private:
dive_trip_t *currentTrip;
dive_trip_t displayedTrip;
bool acceptingEdit;
- uint32_t updateDiveSite(uint32_t pickedUuid, int divenr);
+ uint32_t updateDiveSite(uint32_t pickedUuid, dive *d);
QList<TabBase*> extraWidgets;
};