mirror of
https://github.com/fltk/fltk.git
synced 2026-05-31 05:35:29 +08:00
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).
This commit is contained in:
+4
-1
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user