]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/msw/statusbar.h
check for self-assignment in operator=
[wxWidgets.git] / include / wx / msw / statusbar.h
index 55a1f16c83ab060bce03c3ea3148451f0f9e8747..4b4677c0f3b1375e5f72533ca199d098789a4824 100644 (file)
@@ -14,7 +14,7 @@
 
 #if wxUSE_NATIVE_STATUSBAR
 
-class WXDLLIMPEXP_CORE wxClientDC;
+class WXDLLIMPEXP_FWD_CORE wxClientDC;
 
 class WXDLLIMPEXP_CORE wxStatusBar : public wxStatusBarBase
 {
@@ -26,6 +26,7 @@ public:
                 long style = wxST_SIZEGRIP,
                 const wxString& name = wxStatusBarNameStr)
     {
+        m_pDC = NULL;
         (void)Create(parent, id, style, name);
     }