diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2017-12-10 22:22:13 +0100 |
---|---|---|
committer | Lubomir I. Ivanov <neolit123@gmail.com> | 2017-12-11 00:17:39 +0100 |
commit | ea0cbba804d5809c60d538d56e5542c9fa305d27 (patch) | |
tree | 10d4e530c0609ad4d5ab060621e852497f6e4248 /core | |
parent | fa469aa86cfd4651cce07f03717427ec718bea81 (diff) | |
download | subsurface-ea0cbba804d5809c60d538d56e5542c9fa305d27.tar.gz |
Remove second parameter (bool force) in set_filename()
The last force=false case was removed in commit 96d1cc570e31396039e4970d2bf75d5f00f1e550.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core')
-rw-r--r-- | core/dive.h | 2 | ||||
-rw-r--r-- | core/qthelper.cpp | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/core/dive.h b/core/dive.h index 2b227690b..7b2f3d658 100644 --- a/core/dive.h +++ b/core/dive.h @@ -723,7 +723,7 @@ extern int match_one_dc(struct divecomputer *a, struct divecomputer *b); extern void parse_xml_init(void); extern int parse_xml_buffer(const char *url, const char *buf, int size, struct dive_table *table, const char **params); extern void parse_xml_exit(void); -extern void set_filename(const char *filename, bool force); +extern void set_filename(const char *filename); extern int parse_dm4_buffer(sqlite3 *handle, const char *url, const char *buf, int size, struct dive_table *table); extern int parse_dm5_buffer(sqlite3 *handle, const char *url, const char *buf, int size, struct dive_table *table); diff --git a/core/qthelper.cpp b/core/qthelper.cpp index 7f72fd9a2..b63ea3929 100644 --- a/core/qthelper.cpp +++ b/core/qthelper.cpp @@ -560,10 +560,8 @@ QLocale getLocale() return loc; } -void set_filename(const char *filename, bool force) +void set_filename(const char *filename) { - if (!force && existing_filename) - return; free((void *)existing_filename); if (filename) existing_filename = strdup(filename); |