diff options
| author | Matthias Melcher <github@matthiasm.com> | 2025-03-07 00:48:18 +0100 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2025-03-07 00:48:18 +0100 |
| commit | 9cfd932d3a0d8d8fba61e0ffb91614b8fdcbafea (patch) | |
| tree | 3581cf1c2cba5ada829a9ebdaf58c80302281c7a /documentation/src | |
| parent | 3068c7a0af0afbad572f88e074235853fd8be34c (diff) | |
Replce Fl_String in Fluid with std::string.
Also fix for Linux.
Diffstat (limited to 'documentation/src')
| -rw-r--r-- | documentation/src/common.dox | 4 |
1 files changed, 2 insertions, 2 deletions
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/fl_callback_macros.H> ... -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, |
