core: use C++ constructs in save-html.cpp

Since this is the only caller, onvert the get_file_name() function
to return an std::string.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2024-03-10 16:41:56 +01:00 committed by bstoeger
parent 82ba236859
commit e65ba50c1a
3 changed files with 69 additions and 73 deletions

View file

@ -104,6 +104,7 @@ void uiNotification(const QString &msg);
std::string get_changes_made();
std::string subsurface_user_agent();
std::string normalize_cloud_name(const char *remote_in);
std::string get_file_name(const char *fileName);
#if defined __APPLE__
#define TITLE_OR_TEXT(_t, _m) "", _t + "\n" + _m
@ -125,7 +126,6 @@ bool getProxyString(char **buffer);
bool canReachCloudServer(struct git_info *);
void updateWindowTitle();
void subsurface_mkdir(const char *dir);
char *get_file_name(const char *fileName);
void copy_image_and_overwrite(const char *cfileName, const char *path, const char *cnewName);
char *move_away(const char *path);
const char *local_file_path(struct picture *picture);