Use wxCLASSINFO() instead of deprecated CLASSINFO().
No real changes, just use the version of the macro with a "wx" prefix. Closes #14356. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71625 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -68,7 +68,7 @@ int wxGenericImageList::Add( const wxBitmap &bitmap )
|
||||
|
||||
const int index = int(m_images.GetCount());
|
||||
|
||||
if (bitmap.IsKindOf(CLASSINFO(wxIcon)))
|
||||
if (bitmap.IsKindOf(wxCLASSINFO(wxIcon)))
|
||||
{
|
||||
m_images.Append( new wxIcon( (const wxIcon&) bitmap ) );
|
||||
}
|
||||
@@ -155,7 +155,7 @@ bool wxGenericImageList::Replace( int index, const wxBitmap &bitmap )
|
||||
|
||||
wxCHECK_MSG( node, false, wxT("wrong index in image list") );
|
||||
|
||||
wxBitmap* newBitmap = (bitmap.IsKindOf(CLASSINFO(wxIcon))) ?
|
||||
wxBitmap* newBitmap = (bitmap.IsKindOf(wxCLASSINFO(wxIcon))) ?
|
||||
#if defined(__VISAGECPP__)
|
||||
//just can't do this in VisualAge now, with all this new Bitmap-Icon stuff
|
||||
//so construct it from a bitmap object until I can figure this nonsense out. (DW)
|
||||
@@ -188,7 +188,7 @@ bool wxGenericImageList::Replace( int index, const wxBitmap &bitmap, const wxBit
|
||||
|
||||
wxCHECK_MSG( node, false, wxT("wrong index in image list") );
|
||||
|
||||
wxBitmap* newBitmap = (bitmap.IsKindOf(CLASSINFO(wxIcon))) ?
|
||||
wxBitmap* newBitmap = (bitmap.IsKindOf(wxCLASSINFO(wxIcon))) ?
|
||||
#if defined(__VISAGECPP__)
|
||||
//just can't do this in VisualAge now, with all this new Bitmap-Icon stuff
|
||||
//so construct it from a bitmap object until I can figure this nonsense out. (DW)
|
||||
@@ -263,7 +263,7 @@ bool wxGenericImageList::Draw( int index, wxDC &dc, int x, int y,
|
||||
|
||||
wxBitmap *bm = (wxBitmap*)node->GetData();
|
||||
|
||||
if (bm->IsKindOf(CLASSINFO(wxIcon)))
|
||||
if (bm->IsKindOf(wxCLASSINFO(wxIcon)))
|
||||
dc.DrawIcon( * ((wxIcon*) bm), x, y);
|
||||
else
|
||||
dc.DrawBitmap( *bm, x, y, (flags & wxIMAGELIST_DRAW_TRANSPARENT) > 0 );
|
||||
|
Reference in New Issue
Block a user