From 1186b4e255832ae322e4dd2778318ebcb4568204 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Fri, 7 Mar 2025 20:26:03 +0100 Subject: Making fl_filename_... public for std::string. New functions append "_str" to the function name to avoid ambiguities when calling them. So 'char *fl_filename_name(const char *)' becomes 'std::string fl_filename_name_str(const std::string &)' --- fluid/panels/settings_panel.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fluid/panels/settings_panel.cxx') diff --git a/fluid/panels/settings_panel.cxx b/fluid/panels/settings_panel.cxx index fd67676c6..fb31a319d 100644 --- a/fluid/panels/settings_panel.cxx +++ b/fluid/panels/settings_panel.cxx @@ -600,8 +600,8 @@ static void cb_w_layout_menu_save(Fl_Menu_*, void*) { fnfc.options(Fl_Native_File_Chooser::SAVEAS_CONFIRM | Fl_Native_File_Chooser::USE_FILTER_EXT); fnfc.filter("FLUID Layouts\t*.fll\n"); std::string filename = g_layout_list.filename_; - fnfc.directory(fl_filename_path(filename).c_str()); - fnfc.preset_file(fl_filename_name(filename).c_str()); + fnfc.directory(fl_filename_path_str(filename).c_str()); + fnfc.preset_file(fl_filename_name_str(filename).c_str()); if (fnfc.show() != 0) return; const char *new_filename = fnfc.filename(); if (!new_filename) return; -- cgit v1.2.3