]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/dcmemory.h
destroy m_impl even if an exception is thrown from the main loop
[wxWidgets.git] / include / wx / dcmemory.h
index af42e0135d24adde739944869461cad475c37bf0..4c76214c2a2fb877989f4061369ae8ec0fde42b1 100644 (file)
@@ -12,7 +12,6 @@
 #ifndef _WX_DCMEMORY_H_BASE_
 #define _WX_DCMEMORY_H_BASE_
 
-#include "wx/defs.h"
 #include "wx/bitmap.h"
 
 // NOTE: different native implementations of wxMemoryDC will derive from
@@ -45,6 +44,7 @@ public:
         DoSelect(bmp);
     }
 
+protected:
     virtual void DoSelect(const wxBitmap& bmp) = 0;
 };