From 6acda521ccaa448eeb26f81a2432da586bed9b30 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Fri, 7 Mar 2025 01:15:57 +0100 Subject: Removes the remaining references to Fl_String. Still to do: rename fl_filename... to fl_filename..._str and introduce into core library. --- src/drivers/Unix/Fl_Unix_System_Driver.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/drivers/Unix') diff --git a/src/drivers/Unix/Fl_Unix_System_Driver.cxx b/src/drivers/Unix/Fl_Unix_System_Driver.cxx index 58064a90a..3671aabd7 100644 --- a/src/drivers/Unix/Fl_Unix_System_Driver.cxx +++ b/src/drivers/Unix/Fl_Unix_System_Driver.cxx @@ -21,7 +21,6 @@ #include // fl_strdup #include #include "../../flstring.h" -#include "../../Fl_String.H" #include "../../Fl_Timeout.h" #include @@ -31,6 +30,7 @@ #include #include // strerror(errno) #include // errno +#include #if HAVE_DLSYM && HAVE_DLFCN_H #include // for dlsym #endif @@ -538,7 +538,7 @@ char *Fl_Unix_System_Driver::preference_user_rootnode( char *buffer) { // Find the path to the user's home directory. - Fl_String home_path = getenv("HOME"); + std::string home_path = getenv("HOME"); if (home_path.empty()) { struct passwd *pw = getpwuid(getuid()); if (pw) @@ -546,7 +546,7 @@ char *Fl_Unix_System_Driver::preference_user_rootnode( } // 1: Generate the 1.4 path for this vendor and application. - Fl_String prefs_path_14 = getenv("XDG_CONFIG_HOME"); + std::string prefs_path_14 = getenv("XDG_CONFIG_HOME"); if (prefs_path_14.empty()) { prefs_path_14 = home_path + "/.config"; } else { @@ -567,7 +567,7 @@ char *Fl_Unix_System_Driver::preference_user_rootnode( // 2: If this base path does not exist, try the 1.3 path if (::access(prefs_path_14.c_str(), F_OK) == -1) { - Fl_String prefs_path_13 = home_path + "/.fltk/" + vendor; + std::string prefs_path_13 = home_path + "/.fltk/" + vendor; if (::access(prefs_path_13.c_str(), F_OK) == 0) { prefs_path_13.append("/"); prefs_path_13.append(application); -- cgit v1.2.3