diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-07-30 15:55:29 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-10-11 16:22:27 -0700 |
commit | 96d87273995a6af35d90efb1190ff653e4c03d02 (patch) | |
tree | f115a9ccd821cab753f2863fa86f9f08cd20bbd4 /desktop-widgets/command.h | |
parent | 26901a8dbd91a18689199361541f9d1f90d56e4e (diff) | |
download | subsurface-96d87273995a6af35d90efb1190ff653e4c03d02.tar.gz |
Undo: use dive * instead of unique index in renumber-dives
Now, that pointers to dives are stable, we might just as well
use dive * instead of the unique-id. This also affects the
merge-dive command, as this uses the same renumbering machinery.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/command.h')
-rw-r--r-- | desktop-widgets/command.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop-widgets/command.h b/desktop-widgets/command.h index 924365806..9a8ccfd6d 100644 --- a/desktop-widgets/command.h +++ b/desktop-widgets/command.h @@ -18,7 +18,7 @@ QAction *redoAction(QObject *parent); // Create an redo action. void addDive(dive *d, bool autogroup); void deleteDive(const QVector<struct dive*> &divesToDelete); void shiftTime(const QVector<dive *> &changedDives, int amount); -void renumberDives(const QVector<QPair<int, int>> &divesToRenumber); +void renumberDives(const QVector<QPair<dive *, int>> &divesToRenumber); void removeDivesFromTrip(const QVector<dive *> &divesToRemove); void removeAutogenTrips(); void addDivesToTrip(const QVector<dive *> &divesToAddIn, dive_trip *trip); |