summaryrefslogtreecommitdiff
path: root/fluid/code.cxx
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 /fluid/code.cxx
parent3068c7a0af0afbad572f88e074235853fd8be34c (diff)
Replce Fl_String in Fluid with std::string.
Also fix for Linux.
Diffstat (limited to 'fluid/code.cxx')
-rw-r--r--fluid/code.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/fluid/code.cxx b/fluid/code.cxx
index af8dba504..0e715441a 100644
--- a/fluid/code.cxx
+++ b/fluid/code.cxx
@@ -85,7 +85,7 @@ int write_escaped_strings(FILE *out, const char *text) {
\param[in] filename file path and name to a file that will hold the strings
\return 1 if the file could not be opened for writing, or the result of `fclose`.
*/
-int write_strings(const Fl_String &filename) {
+int write_strings(const std::string &filename) {
Fl_Type *p;
Fl_Widget_Type *w;
int i;
@@ -797,7 +797,7 @@ int Fd_Code_Writer::write_code(const char *s, const char *t, bool to_codeview) {
}
// Remember the last code file location for MergeBack
if (s && g_project.write_mergeback_data && !to_codeview) {
- Fl_String proj_filename = g_project.projectfile_path() + g_project.projectfile_name();
+ std::string proj_filename = g_project.projectfile_path() + g_project.projectfile_name();
int i, n = proj_filename.size();
for (i=0; i<n; i++) if (proj_filename[i]=='\\') proj_filename[i] = '/';
Fl_Preferences build_records(Fl_Preferences::USER_L, "fltk.org", "fluid-build");
@@ -848,7 +848,7 @@ int Fd_Code_Writer::write_code(const char *s, const char *t, bool to_codeview) {
write_c("#include \"%s\"\n", g_project.header_file_name.c_str());
}
}
- Fl_String loc_include, loc_conditional;
+ std::string loc_include, loc_conditional;
if (g_project.i18n_type==FD_I18N_GNU) {
loc_include = g_project.i18n_gnu_include;
loc_conditional = g_project.i18n_gnu_conditional;