diff options
| author | Matthias Melcher <github@matthiasm.com> | 2025-03-07 00:12:40 +0100 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2025-03-07 00:12:40 +0100 |
| commit | 3068c7a0af0afbad572f88e074235853fd8be34c (patch) | |
| tree | 56011d5e67022f7f68c3ff1581d0598a5a37fc40 /src/Fl_String.H | |
| parent | 27101536f6a75294ebaa196d82c3ef13eb0a705a (diff) | |
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.
Diffstat (limited to 'src/Fl_String.H')
| -rw-r--r-- | src/Fl_String.H | 14 |
1 files changed, 14 insertions, 0 deletions
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 <FL/Fl_Export.H> +#include <string> + +#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_ |
