summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/dive.h2
-rw-r--r--core/save-html.c2
-rw-r--r--core/save-profiledata.c2
-rw-r--r--core/save-xml.c2
-rw-r--r--core/uploadDiveLogsDE.cpp2
-rw-r--r--core/uploadDiveLogsDE.h2
-rw-r--r--core/worldmap-save.c2
-rw-r--r--core/worldmap-save.h2
8 files changed, 8 insertions, 8 deletions
diff --git a/core/dive.h b/core/dive.h
index e54006dd8..e602b4f4f 100644
--- a/core/dive.h
+++ b/core/dive.h
@@ -315,7 +315,7 @@ extern void set_filename(const char *filename);
extern int save_dives(const char *filename);
extern int save_dives_logic(const char *filename, bool select_only, bool anonymize);
extern int save_dive(FILE *f, struct dive *dive, bool anonymize);
-extern int export_dives_xslt(const char *filename, const bool selected, const int units, const char *export_xslt, bool anonymize);
+extern int export_dives_xslt(const char *filename, bool selected, const int units, const char *export_xslt, bool anonymize);
extern int save_dive_sites_logic(const char *filename, const struct dive_site *sites[], int nr_sites, bool anonymize);
diff --git a/core/save-html.c b/core/save-html.c
index 5902a8a71..d5f472058 100644
--- a/core/save-html.c
+++ b/core/save-html.c
@@ -344,7 +344,7 @@ void put_HTML_tags(struct membuffer *b, struct dive *dive, const char *pre, cons
}
/* if exporting list_only mode, we neglect exporting the samples, bookmarks and cylinders */
-void write_one_dive(struct membuffer *b, struct dive *dive, const char *photos_dir, int *dive_no, const bool list_only)
+void write_one_dive(struct membuffer *b, struct dive *dive, const char *photos_dir, int *dive_no, bool list_only)
{
put_string(b, "{");
put_format(b, "\"number\":%d,", *dive_no);
diff --git a/core/save-profiledata.c b/core/save-profiledata.c
index 87047a34a..696dc7016 100644
--- a/core/save-profiledata.c
+++ b/core/save-profiledata.c
@@ -239,7 +239,7 @@ void save_subtitles_buffer(struct membuffer *b, struct dive *dive, int offset, i
free_plot_info_data(&pi);
}
-int save_profiledata(const char *filename, const bool select_only)
+int save_profiledata(const char *filename, bool select_only)
{
struct membuffer buf = { 0 };
FILE *f;
diff --git a/core/save-xml.c b/core/save-xml.c
index 963907fb2..3dde176bd 100644
--- a/core/save-xml.c
+++ b/core/save-xml.c
@@ -595,7 +595,7 @@ int save_dives(const char *filename)
return save_dives_logic(filename, false, false);
}
-static void save_dives_buffer(struct membuffer *b, const bool select_only, bool anonymize)
+static void save_dives_buffer(struct membuffer *b, bool select_only, bool anonymize)
{
int i;
struct dive *dive;
diff --git a/core/uploadDiveLogsDE.cpp b/core/uploadDiveLogsDE.cpp
index b4b50a7ba..219e13f45 100644
--- a/core/uploadDiveLogsDE.cpp
+++ b/core/uploadDiveLogsDE.cpp
@@ -61,7 +61,7 @@ void uploadDiveLogsDE::doUpload(bool selected, const QString &userid, const QStr
}
-bool uploadDiveLogsDE::prepareDives(const QString &tempfile, const bool selected)
+bool uploadDiveLogsDE::prepareDives(const QString &tempfile, bool selected)
{
static const char errPrefix[] = "divelog.de-upload:";
#ifndef SUBSURFACE_MOBILE
diff --git a/core/uploadDiveLogsDE.h b/core/uploadDiveLogsDE.h
index 5c17e64a5..da47b14af 100644
--- a/core/uploadDiveLogsDE.h
+++ b/core/uploadDiveLogsDE.h
@@ -30,7 +30,7 @@ private:
void uploadDives(const QString &filename, const QString &userid, const QString &password);
// only to be used in desktop-widgets::subsurfacewebservices
- bool prepareDives(const QString &tempfile, const bool selected);
+ bool prepareDives(const QString &tempfile, bool selected);
QNetworkReply *reply;
QHttpMultiPart *multipart;
diff --git a/core/worldmap-save.c b/core/worldmap-save.c
index 48a5fcf5f..121f0f728 100644
--- a/core/worldmap-save.c
+++ b/core/worldmap-save.c
@@ -24,7 +24,7 @@ char *getGoogleApi()
return "https://maps.googleapis.com/maps/api/js?";
}
-void writeMarkers(struct membuffer *b, const bool selected_only)
+void writeMarkers(struct membuffer *b, bool selected_only)
{
int i, dive_no = 0;
struct dive *dive;
diff --git a/core/worldmap-save.h b/core/worldmap-save.h
index 9d74e123a..f3e2ddd29 100644
--- a/core/worldmap-save.h
+++ b/core/worldmap-save.h
@@ -6,7 +6,7 @@
extern "C" {
#endif
-extern void export_worldmap_HTML(const char *file_name, const bool selected_only);
+extern void export_worldmap_HTML(const char *file_name, bool selected_only);
#ifdef __cplusplus
}