summaryrefslogtreecommitdiffstats
path: root/core/qthelper.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2017-12-10 22:22:13 +0100
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2017-12-11 00:17:39 +0100
commitea0cbba804d5809c60d538d56e5542c9fa305d27 (patch)
tree10d4e530c0609ad4d5ab060621e852497f6e4248 /core/qthelper.cpp
parentfa469aa86cfd4651cce07f03717427ec718bea81 (diff)
downloadsubsurface-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/qthelper.cpp')
-rw-r--r--core/qthelper.cpp4
1 files changed, 1 insertions, 3 deletions
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);