From 3068c7a0af0afbad572f88e074235853fd8be34c Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Fri, 7 Mar 2025 00:12:40 +0100 Subject: Fl_String is now just an alias for std::string. All mentions of Fl_String will be replaced with std::string and the Fl_String implementation will be removed. --- src/Fl_String.H | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/Fl_String.H') diff --git a/src/Fl_String.H b/src/Fl_String.H index e7fbf49eb..13dfd8cf0 100644 --- a/src/Fl_String.H +++ b/src/Fl_String.H @@ -29,6 +29,18 @@ #include +#include + +#if 1 + +// Since fltk 1.5.0, Fl_String is no longer needed and now maps to std::string. +// Fl_String is not part of the public API. All occurrences of Fl_String in the +// core library and in Fluid should be replaced with std::string. When done, +// src/Fl_String.H and src/Fl_String.cxx can be deleted. +using Fl_String = std::string; + +#else + // See: https://en.cppreference.com/w/cpp/string/basic_string/basic_string /** @@ -142,4 +154,6 @@ FL_EXPORT bool operator!=(const Fl_String & lhs, const Fl_String & rhs); \endcond */ +#endif + #endif // _FL_Fl_String_H_ -- cgit v1.2.3