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>
This commit is contained in:
Berthold Stoeger 2018-07-19 19:26:59 +02:00 committed by Dirk Hohndel
parent 403dd5a891
commit 61467ea0d5
2 changed files with 9 additions and 12 deletions

View file

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