]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/gdiobj.cpp
Late note about deprecated wxDbTable constructor.
[wxWidgets.git] / src / msw / gdiobj.cpp
index 7078a1d946384e0881409b115a790b96cbfc495c..77c3045ad85b9f466228097dbc8f112c3c9bc69b 100644 (file)
@@ -6,10 +6,10 @@
 // Created:     01/02/97
 // RCS-ID:      $Id$
 // Copyright:   (c) Julian Smart
-// Licence:    wxWindows licence
+// Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
 #pragma implementation "gdiobj.h"
 #endif
 
 
 #include "wx/gdiobj.h"
 #include "wx/msw/private.h"
-#include "assert.h"
 
 IMPLEMENT_DYNAMIC_CLASS(wxGDIObject, wxObject)
 
 /*
 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 ++;
@@ -46,12 +45,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)
   {