diff options
| author | Matthias Melcher <github@matthiasm.com> | 2025-03-07 00:48:18 +0100 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2025-03-07 00:48:18 +0100 |
| commit | 9cfd932d3a0d8d8fba61e0ffb91614b8fdcbafea (patch) | |
| tree | 3581cf1c2cba5ada829a9ebdaf58c80302281c7a /fluid/settings_panel.cxx | |
| parent | 3068c7a0af0afbad572f88e074235853fd8be34c (diff) | |
Replce Fl_String in Fluid with std::string.
Also fix for Linux.
Diffstat (limited to 'fluid/settings_panel.cxx')
| -rw-r--r-- | fluid/settings_panel.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fluid/settings_panel.cxx b/fluid/settings_panel.cxx index bdaea50ca..291f5d24a 100644 --- a/fluid/settings_panel.cxx +++ b/fluid/settings_panel.cxx @@ -512,7 +512,7 @@ static void cb_2(Fl_Button*, void* v) { if (v == LOAD) return; - Fl_String old_name = "Copy of "; + std::string old_name = "Copy of "; old_name.append(g_layout_list[g_layout_list.current_suite()].name_); const char *new_name = fl_input("Enter a name for the new layout:", old_name.c_str()); if (new_name == NULL) @@ -543,7 +543,7 @@ static void cb_w_layout_menu(Fl_Menu_Button*, void* v) { static void cb_w_layout_menu_rename(Fl_Menu_*, void*) { // Rename the current layout suite - Fl_String old_name = g_layout_list[g_layout_list.current_suite()].name_; + std::string old_name = g_layout_list[g_layout_list.current_suite()].name_; const char *new_name = fl_input("Enter a new name for the layout:", old_name.c_str()); if (new_name == NULL) return; @@ -598,7 +598,7 @@ static void cb_w_layout_menu_save(Fl_Menu_*, void*) { fnfc.type(Fl_Native_File_Chooser::BROWSE_SAVE_FILE); fnfc.options(Fl_Native_File_Chooser::SAVEAS_CONFIRM | Fl_Native_File_Chooser::USE_FILTER_EXT); fnfc.filter("FLUID Layouts\t*.fll\n"); - Fl_String filename = g_layout_list.filename_; + std::string filename = g_layout_list.filename_; fnfc.directory(fl_filename_path(filename).c_str()); fnfc.preset_file(fl_filename_name(filename).c_str()); if (fnfc.show() != 0) return; |
