From 96d87273995a6af35d90efb1190ff653e4c03d02 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Mon, 30 Jul 2018 15:55:29 +0200 Subject: 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 --- desktop-widgets/command.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'desktop-widgets/command.h') 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 &divesToDelete); void shiftTime(const QVector &changedDives, int amount); -void renumberDives(const QVector> &divesToRenumber); +void renumberDives(const QVector> &divesToRenumber); void removeDivesFromTrip(const QVector &divesToRemove); void removeAutogenTrips(); void addDivesToTrip(const QVector &divesToAddIn, dive_trip *trip); -- cgit v1.2.3-70-g09d2