summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-09-22 19:42:30 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-10-02 08:04:49 -0700
commit10d4ba82a21e3648082ddd9bae5010881d71418a (patch)
treedd4dff0f5a8e5c18f65f64b55736d21b7e9e8f67
parenta24b1a402767a7df16d101ee54d2ea565ec49498 (diff)
downloadsubsurface-10d4ba82a21e3648082ddd9bae5010881d71418a.tar.gz
Documentation: add comment to Command::importDives
Add a comment that the passed-in dives are consumed. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
-rw-r--r--desktop-widgets/command.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/desktop-widgets/command.h b/desktop-widgets/command.h
index fa4ce2a45..15218383c 100644
--- a/desktop-widgets/command.h
+++ b/desktop-widgets/command.h
@@ -25,7 +25,8 @@ QAction *redoAction(QObject *parent); // Create an redo action.
// If newNumber is true, the dive is assigned a new number, depending on the
// insertion position.
void addDive(dive *d, const bool autogroup, bool newNumber);
-void importDives(struct dive_table *dives, struct trip_table *trips, struct dive_site_table *sites, int flags, const QString &source);
+void importDives(struct dive_table *dives, struct trip_table *trips,
+ struct dive_site_table *sites, int flags, const QString &source); // The tables are consumed!
void deleteDive(const QVector<struct dive*> &divesToDelete);
void shiftTime(const QVector<dive *> &changedDives, int amount);
void renumberDives(const QVector<QPair<dive *, int>> &divesToRenumber);