X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9d1c7e8474ac6501f6ed39549b91c86eca9aae23..7d605004a217d4f4ef674d7edf073982d8931995:/include/wx/image.h diff --git a/include/wx/image.h b/include/wx/image.h index 3a6b0fdee1..40b17b20e1 100644 --- a/include/wx/image.h +++ b/include/wx/image.h @@ -440,8 +440,10 @@ public: static RGBValue HSVtoRGB(const HSVValue& hsv); #if WXWIN_COMPATIBILITY_2_8 + // explicitly specifying inline allows gcc < 3.4 to + // handle the deprecation attribute even in the constructor. wxDEPRECATED( - wxImage(const wxString& name, long type, int index = -1) + inline wxImage(const wxString& name, long type, int index = -1) { LoadFile(name, (wxBitmapType)type, index); } @@ -449,7 +451,7 @@ public: #if wxUSE_STREAMS wxDEPRECATED( - wxImage(wxInputStream& stream, long type, int index = -1) + inline wxImage(wxInputStream& stream, long type, int index = -1) { LoadFile(stream, (wxBitmapType)type, index); }