X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/470ee7146305a65affc4af7926c88e26cd394ecc..e0dec8753abaf97e006ea1185bfb6775b28df0a8:/samples/widgets/statbmp.cpp diff --git a/samples/widgets/statbmp.cpp b/samples/widgets/statbmp.cpp index 5305c65048..6449d23ef9 100644 --- a/samples/widgets/statbmp.cpp +++ b/samples/widgets/statbmp.cpp @@ -6,7 +6,7 @@ // Created: 2008-06-19 // Id: $Id$ // Copyright: (c) 2008 Marcin Wojdyr -// License: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// // ============================================================================ @@ -115,15 +115,14 @@ void StatBmpWidgetsPage::CreateContent() void StatBmpWidgetsPage::RecreateWidget() { - delete m_statbmp; - m_statbmp = NULL; + wxDELETE(m_statbmp); wxString filepath = m_filepicker->GetPath(); if ( filepath.empty() ) return; wxImage image(filepath); - if (! image.Ok() ) + if (! image.IsOk() ) { wxLogMessage("Reading image from file '%s' failed.", filepath.c_str()); return;