summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2022-12-22 00:18:01 +0100
committerGitHub <noreply@github.com>2022-12-22 00:18:01 +0100
commitd98c6638938b09934889b5c639a56d4dea10a6fb (patch)
tree58bd129f6e21535a483e995ac3325264c8ec1347 /FL
parent1d212b7a0394fb72e76b3e713e2aa949cea4d612 (diff)
Fix compilation on old gcc (#606)
* Fixing char* use in FLUID * Fixing const cast
Diffstat (limited to 'FL')
-rw-r--r--FL/Fl_String.H4
1 files changed, 3 insertions, 1 deletions
diff --git a/FL/Fl_String.H b/FL/Fl_String.H
index 300cf98f6..4a20c48b2 100644
--- a/FL/Fl_String.H
+++ b/FL/Fl_String.H
@@ -91,7 +91,7 @@ public:
private:
void init();
- void alloc_buf(int size);
+ void alloc_buf(int size, bool preserve_text=false);
void release();
public:
@@ -99,10 +99,12 @@ public:
void value(const char *str, int slen);
const char *value() const { return value_; }
+ char *buffer() { return value_; }
int size() const { return size_; }
int slen() const;
int capacity() const;
+ void capacity(int num_bytes);
void debug(const char *info = 0) const; // output string info
void hexdump(const char *info = 0) const; // output string info + hexdump