summaryrefslogtreecommitdiffstats
path: root/commands/command.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-02-06 22:56:10 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-02-09 12:13:18 -0800
commit8391d926c7355a0ff637c2b604e259d0d25c3cb2 (patch)
tree36cb3cfe14ef1d688ed39b568a3d35dbe8659971 /commands/command.h
parentee839bf68618fc27f96b04291912c8af09e944b2 (diff)
downloadsubsurface-8391d926c7355a0ff637c2b604e259d0d25c3cb2.tar.gz
Cleanup: remove const bool parameters and return types
These just make no sense. Since the value is copied, it has no meaning to the caller whether the function can change the value (and vice versa for return types). Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'commands/command.h')
-rw-r--r--commands/command.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/command.h b/commands/command.h
index 34df6eba8..bf9bd13ec 100644
--- a/commands/command.h
+++ b/commands/command.h
@@ -24,7 +24,7 @@ QAction *redoAction(QObject *parent); // Create an redo action.
// distance are added to a trip. dive d is consumed (the structure is reset)!
// 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 addDive(dive *d, bool autogroup, bool newNumber);
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);