mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: turn existing_filename into std::string
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
37f2207f94
commit
41cb916060
10 changed files with 59 additions and 55 deletions
|
@ -44,7 +44,7 @@
|
|||
|
||||
#include <libxslt/documents.h>
|
||||
|
||||
const char *existing_filename;
|
||||
std::string existing_filename;
|
||||
static QLocale loc;
|
||||
|
||||
static inline QString degreeSigns()
|
||||
|
@ -521,12 +521,6 @@ QLocale getLocale()
|
|||
return loc;
|
||||
}
|
||||
|
||||
void set_filename(const char *filename)
|
||||
{
|
||||
free((void *)existing_filename);
|
||||
existing_filename = copy_string(filename);
|
||||
}
|
||||
|
||||
QString get_depth_string(int mm, bool showunit, bool showdecimal)
|
||||
{
|
||||
if (prefs.units.length == units::METERS) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue