diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2021-10-02 17:01:00 +0200 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2021-10-02 18:40:32 +0200 |
| commit | 59836fb19f45d123e0f75b47c497b97aaa7bdfbe (patch) | |
| tree | 51a171b133827ad0ec18892e5262035f1676a89c /FL/Fl_GIF_Image.H | |
| parent | 01ea77ed88269930688f41449168103dbbbc1985 (diff) | |
Separate Fl_GIF_Image constructors with and w/o length arg
Document clearly that reading from memory w/o the length argument
(old constructor) is discouraged (deprecated).
Diffstat (limited to 'FL/Fl_GIF_Image.H')
| -rw-r--r-- | FL/Fl_GIF_Image.H | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/FL/Fl_GIF_Image.H b/FL/Fl_GIF_Image.H index 274af9a57..4871bf574 100644 --- a/FL/Fl_GIF_Image.H +++ b/FL/Fl_GIF_Image.H @@ -31,7 +31,10 @@ class FL_EXPORT Fl_GIF_Image : public Fl_Pixmap { public: Fl_GIF_Image(const char* filename); - Fl_GIF_Image(const char* imagename, const unsigned char *data, const long length = -1); + // deprecated constructor w/o length (for backwards compatibility) + Fl_GIF_Image(const char* imagename, const unsigned char *data); + // constructor with length (since 1.4.0) + Fl_GIF_Image(const char* imagename, const unsigned char *data, const size_t length); protected: |
