mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
403dd5a891
commit
61467ea0d5
2 changed files with 9 additions and 12 deletions
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue