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. --- documentation/src/common.dox | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'documentation/src') diff --git a/documentation/src/common.dox b/documentation/src/common.dox index dc8843eee..5677bb5e5 100644 --- a/documentation/src/common.dox +++ b/documentation/src/common.dox @@ -601,9 +601,9 @@ needs no additional maintenance. It is also C++98 compatible. For example: \code #include ... -Fl_String *str = new Fl_String("FLTK"); +std::string *str = new std::string("FLTK"); Fl_Button *btn = new Fl_Button(10, 10, 100, 100); -FL_METHOD_CALLBACK_2(btn, Fl_String, str, insert, int, 2, const char*, "..."); +FL_METHOD_CALLBACK_2(btn, std::string, str, insert, int, 2, const char*, "..."); ... Fl_Button *inline_cb_btn_2 = new Fl_Button(390, 60, 180, 25, "2 args"); FL_INLINE_CALLBACK_2( inline_cb_btn_2, -- cgit v1.2.3