Fix uses of wxDEPRECATED in WXWIN_COMPATIBILITY_2_8-only code
wxDEPRECATED must be used for the entire declaration to really work, but this wasn't the case for a few functions (and one typedef) guarded by WXWIN_COMPATIBILITY_2_8, resulting in gcc -Wattributes warning about the attribute being ignored and the declaration not being really marked as deprecated. Fix this by applying the deprecation macro to the entire declaration, which works well for gcc and should hopefully work for MSVC too.
This commit is contained in:
parent
9febbe2b30
commit
d14e035580
6 changed files with 7 additions and 7 deletions
|
|
@ -645,14 +645,14 @@ public:
|
|||
}
|
||||
)
|
||||
|
||||
static wxDEPRECATED(
|
||||
wxDEPRECATED(static
|
||||
wxImageHandler *FindHandler(const wxString& ext, long type)
|
||||
{
|
||||
return FindHandler(ext, (wxBitmapType)type);
|
||||
}
|
||||
)
|
||||
|
||||
static wxDEPRECATED(
|
||||
wxDEPRECATED(static
|
||||
wxImageHandler *FindHandler(long imageType)
|
||||
{
|
||||
return FindHandler((wxBitmapType)imageType);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue