summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2025-03-07 00:12:40 +0100
committerMatthias Melcher <github@matthiasm.com>2025-03-07 00:12:40 +0100
commit3068c7a0af0afbad572f88e074235853fd8be34c (patch)
tree56011d5e67022f7f68c3ff1581d0598a5a37fc40 /FL
parent27101536f6a75294ebaa196d82c3ef13eb0a705a (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 'FL')
-rw-r--r--FL/Fl_Preferences.H11
1 files changed, 1 insertions, 10 deletions
diff --git a/FL/Fl_Preferences.H b/FL/Fl_Preferences.H
index 6c6407a57..92cc966b3 100644
--- a/FL/Fl_Preferences.H
+++ b/FL/Fl_Preferences.H
@@ -24,10 +24,7 @@
# include "Fl_Export.H"
# include "fl_attr.h"
-//class Fl_String;
-#if (FLTK_USE_STD)
#include <string>
-#endif
/**
\brief Fl_Preferences store user settings between application starts.
@@ -245,6 +242,7 @@ public:
char set( const char *entry, double value, int precision );
char set( const char *entry, const char *value );
char set( const char *entry, const void *value, int size );
+ char set( const char *entry, const std::string &value );
char get( const char *entry, int &value, int defaultValue );
char get( const char *entry, float &value, float defaultValue );
@@ -254,14 +252,7 @@ public:
char get( const char *entry, void *&value, const void *defaultValue, int defaultSize );
char get( const char *entry, void *value, const void *defaultValue, int defaultSize, int maxSize );
char get( const char *entry, void *value, const void *defaultValue, int defaultSize, int *size );
-
-// char set( const char *entry, const Fl_String &value );
-// char get( const char *entry, Fl_String &value, const Fl_String &defaultValue );
-
-#if (FLTK_USE_STD)
- char set( const char *entry, const std::string &value );
char get( const char *entry, std::string &value, const std::string &defaultValue );
-#endif
int size( const char *entry );