X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4055ed8281971e3d35bf04177193c27043d42ed1..8709d9472bc45411b2123a82a8e6df2da21b3ffa:/src/palmos/ownerdrw.cpp?ds=sidebyside diff --git a/src/palmos/ownerdrw.cpp b/src/palmos/ownerdrw.cpp index 80c6704b80..e3e02226c2 100644 --- a/src/palmos/ownerdrw.cpp +++ b/src/palmos/ownerdrw.cpp @@ -1,39 +1,35 @@ /////////////////////////////////////////////////////////////////////////////// -// Name: palmos/ownerdrw.cpp +// Name: src/palmos/ownerdrw.cpp // Purpose: implementation of wxOwnerDrawn class -// Author: William Osborne +// Author: William Osborne - minimal working wxPalmOS port // Modified by: // Created: 10/13/04 -// RCS-ID: $Id: +// RCS-ID: $Id$ // Copyright: (c) William Osborne // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) -#pragma implementation -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" #ifdef __BORLANDC__ -#pragma hdrstop + #pragma hdrstop #endif #ifndef WX_PRECOMP - #include "wx/window.h" - #include "wx/font.h" - #include "wx/bitmap.h" - #include "wx/dcmemory.h" - #include "wx/menu.h" - #include "wx/utils.h" + #include "wx/window.h" + #include "wx/font.h" + #include "wx/bitmap.h" + #include "wx/dcmemory.h" + #include "wx/menu.h" + #include "wx/utils.h" + #include "wx/settings.h" + #include "wx/menuitem.h" + #include "wx/module.h" #endif -#include "wx/settings.h" #include "wx/ownerdrw.h" -#include "wx/menuitem.h" #include "wx/fontutil.h" -#include "wx/module.h" #if wxUSE_OWNER_DRAWN @@ -49,8 +45,7 @@ public: virtual void OnExit() { - delete ms_systemMenuFont; - ms_systemMenuFont = NULL; + wxDELETE(ms_systemMenuFont); } static wxFont* ms_systemMenuFont; @@ -112,4 +107,3 @@ bool wxOwnerDrawn::OnDrawItem(wxDC& dc, #endif // wxUSE_OWNER_DRAWN -