diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-02-06 22:56:10 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-02-09 12:13:18 -0800 |
commit | 8391d926c7355a0ff637c2b604e259d0d25c3cb2 (patch) | |
tree | 36cb3cfe14ef1d688ed39b568a3d35dbe8659971 /backend-shared | |
parent | ee839bf68618fc27f96b04291912c8af09e944b2 (diff) | |
download | subsurface-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 'backend-shared')
-rw-r--r-- | backend-shared/exportfuncs.cpp | 6 | ||||
-rw-r--r-- | backend-shared/exportfuncs.h | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/backend-shared/exportfuncs.cpp b/backend-shared/exportfuncs.cpp index 54ec08139..a48f60066 100644 --- a/backend-shared/exportfuncs.cpp +++ b/backend-shared/exportfuncs.cpp @@ -12,7 +12,7 @@ #include "core/divesite.h" #include "exportfuncs.h" -void exportProfile(QString filename, const bool selected_only) +void exportProfile(QString filename, bool selected_only) { struct dive *dive; int i; @@ -33,7 +33,7 @@ void exportProfile(QString filename, const bool selected_only) } -void export_TeX(const char *filename, const bool selected_only, bool plain) +void export_TeX(const char *filename, bool selected_only, bool plain) { FILE *f; QDir texdir = QFileInfo(filename).dir(); @@ -233,7 +233,7 @@ void export_TeX(const char *filename, const bool selected_only, bool plain) } -void export_depths(const char *filename, const bool selected_only) +void export_depths(const char *filename, bool selected_only) { FILE *f; struct dive *dive; diff --git a/backend-shared/exportfuncs.h b/backend-shared/exportfuncs.h index ebd2b8fcb..250e8e60f 100644 --- a/backend-shared/exportfuncs.h +++ b/backend-shared/exportfuncs.h @@ -7,9 +7,9 @@ struct dive_site; -void exportProfile(QString filename, const bool selected_only); -void export_TeX(const char *filename, const bool selected_only, bool plain); -void export_depths(const char *filename, const bool selected_only); +void exportProfile(QString filename, bool selected_only); +void export_TeX(const char *filename, bool selected_only, bool plain); +void export_depths(const char *filename, bool selected_only); std::vector<const dive_site *> getDiveSitesToExport(bool selectedOnly); QFuture<int> exportUsingStyleSheet(QString filename, bool doExport, int units, QString stylesheet, bool anonymize); |