X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9a83f860948059b0273b5cc6d9e43fadad3ebfca..64ea838d8f4d1853b7d850db93ee565e901d099a:/src/os2/statbmp.cpp diff --git a/src/os2/statbmp.cpp b/src/os2/statbmp.cpp index 52ba6af126..9a7f0985a3 100644 --- a/src/os2/statbmp.cpp +++ b/src/os2/statbmp.cpp @@ -28,8 +28,6 @@ // macros // --------------------------------------------------------------------------- -IMPLEMENT_DYNAMIC_CLASS(wxStaticBitmap, wxControl) - BEGIN_EVENT_TABLE(wxStaticBitmap, wxWindow) EVT_PAINT(wxStaticBitmap::OnPaint) END_EVENT_TABLE() @@ -136,14 +134,12 @@ bool wxStaticBitmap::Create( wxWindow* pParent, bool wxStaticBitmap::ImageIsOk() const { - return(m_pImage && m_pImage->Ok()); + return(m_pImage && m_pImage->IsOk()); } void wxStaticBitmap::Free() { - if (m_pImage) - delete m_pImage; - m_pImage = NULL; + wxDELETE(m_pImage); } // end of wxStaticBitmap::Free wxSize wxStaticBitmap::DoGetBestSize() const