From 9cfd932d3a0d8d8fba61e0ffb91614b8fdcbafea Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Fri, 7 Mar 2025 00:48:18 +0100 Subject: Replce Fl_String in Fluid with std::string. Also fix for Linux. --- src/drivers/Unix/Fl_Unix_System_Driver.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/drivers/Unix/Fl_Unix_System_Driver.cxx') diff --git a/src/drivers/Unix/Fl_Unix_System_Driver.cxx b/src/drivers/Unix/Fl_Unix_System_Driver.cxx index 9601d0a02..a5272be65 100644 --- a/src/drivers/Unix/Fl_Unix_System_Driver.cxx +++ b/src/drivers/Unix/Fl_Unix_System_Driver.cxx @@ -551,7 +551,7 @@ char *Fl_Unix_System_Driver::preference_user_rootnode( prefs_path_14 = home_path + "/.config"; } else { if (prefs_path_14[prefs_path_14.size()-1]!='/') - prefs_path_14.append('/'); + prefs_path_14.append("/"); if (prefs_path_14.find("~/")==0) // starts with "~" prefs_path_14.replace(0, 1, home_path); int h_env = prefs_path_14.find("${HOME}"); @@ -562,7 +562,7 @@ char *Fl_Unix_System_Driver::preference_user_rootnode( prefs_path_14.replace(h_env, 5, home_path); } if (prefs_path_14[prefs_path_14.size()-1]!='/') - prefs_path_14.append('/'); + prefs_path_14.append("/"); prefs_path_14.append(vendor); // 2: If this base path does not exist, try the 1.3 path @@ -578,7 +578,7 @@ char *Fl_Unix_System_Driver::preference_user_rootnode( } // 3: neither path exists, return the 1.4 file path and name - prefs_path_14.append('/'); + prefs_path_14.append("/"); prefs_path_14.append(application); prefs_path_14.append(".prefs"); strlcpy(buffer, prefs_path_14.c_str(), FL_PATH_MAX); -- cgit v1.2.3