summaryrefslogtreecommitdiff
path: root/src/Fl_Terminal.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2025-03-07 01:15:57 +0100
committerMatthias Melcher <github@matthiasm.com>2025-03-07 01:15:57 +0100
commit6acda521ccaa448eeb26f81a2432da586bed9b30 (patch)
treec5cdcca4e341539a0165a74b59a916922ccccb40 /src/Fl_Terminal.cxx
parent063ff67fcdd6976be214b6fb519d45c650d5498c (diff)
Removes the remaining references to Fl_String.
Still to do: rename fl_filename... to fl_filename..._str and introduce into core library.
Diffstat (limited to 'src/Fl_Terminal.cxx')
-rw-r--r--src/Fl_Terminal.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Fl_Terminal.cxx b/src/Fl_Terminal.cxx
index 0bf566531..f68668b1e 100644
--- a/src/Fl_Terminal.cxx
+++ b/src/Fl_Terminal.cxx
@@ -29,13 +29,13 @@
#include <string.h> // strlen
#include <stdarg.h> // vprintf, va_list
#include <assert.h>
+#include <string>
#include <FL/Fl.H>
#include <FL/Fl_Terminal.H>
#include <FL/fl_utf8.h> // fl_utf8len1
#include <FL/fl_draw.H>
#include <FL/fl_string_functions.h>
-#include "Fl_String.H"
/////////////////////////////////
////// Static Functions /////////
@@ -3948,7 +3948,7 @@ int Fl_Terminal::handle(int e) {
\return A string allocated with strdup(3) which must be free'd, text is UTF-8.
*/
const char* Fl_Terminal::text(bool lines_below_cursor) const {
- Fl_String lines; // lines of text we'll return
+ std::string lines; // lines of text we'll return
// See how many display rows we need to include
int disprows = lines_below_cursor ? disp_rows() - 1 // all display lines
: cursor_row(); // only lines up to cursor