summaryrefslogtreecommitdiff
path: root/src/drivers/Unix
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2025-03-07 00:48:18 +0100
committerMatthias Melcher <github@matthiasm.com>2025-03-07 00:48:18 +0100
commit9cfd932d3a0d8d8fba61e0ffb91614b8fdcbafea (patch)
tree3581cf1c2cba5ada829a9ebdaf58c80302281c7a /src/drivers/Unix
parent3068c7a0af0afbad572f88e074235853fd8be34c (diff)
Replce Fl_String in Fluid with std::string.
Also fix for Linux.
Diffstat (limited to 'src/drivers/Unix')
-rw-r--r--src/drivers/Unix/Fl_Unix_System_Driver.cxx6
1 files changed, 3 insertions, 3 deletions
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);