X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2bda0e173844e8e0f8acf4e8ad8b5c26e5c6fe5d..5875d39c9ba19f518e691792524f2fd03261c825:/src/msw/gdiobj.cpp diff --git a/src/msw/gdiobj.cpp b/src/msw/gdiobj.cpp index 3a10a3fefe..1e9cc0a3b4 100644 --- a/src/msw/gdiobj.cpp +++ b/src/msw/gdiobj.cpp @@ -5,14 +5,10 @@ // Modified by: // Created: 01/02/97 // RCS-ID: $Id$ -// Copyright: (c) Julian Smart and Markus Holzem -// Licence: wxWindows licence +// Copyright: (c) Julian Smart +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ -#pragma implementation "gdiobj.h" -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -30,17 +26,14 @@ #include "wx/gdiobj.h" #include "wx/msw/private.h" -#include "assert.h" -#if !USE_SHARED_LIBRARIES IMPLEMENT_DYNAMIC_CLASS(wxGDIObject, wxObject) -#endif /* void wxGDIObject::IncrementResourceUsage(void) { - if ( !M_GDIDATA ) - return; + if ( !M_GDIDATA ) + return; // wxDebugMsg("Object %ld about to be incremented: %d\n", (long)this, m_usageCount); M_GDIDATA->m_usageCount ++; @@ -48,12 +41,12 @@ void wxGDIObject::IncrementResourceUsage(void) void wxGDIObject::DecrementResourceUsage(void) { - if ( !M_GDIDATA ) - return; + if ( !M_GDIDATA ) + return; M_GDIDATA->m_usageCount --; if (wxTheApp) - wxTheApp->SetPendingCleanup(TRUE); + wxTheApp->SetPendingCleanup(true); // wxDebugMsg("Object %ld decremented: %d\n", (long)this, M_GDIDATA->m_usageCount); if (M_GDIDATA->m_usageCount < 0) {