X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5b36366c59ea68056ba07a3ca1c2cd6022a59735..52f2f7b2c15e10eec1607bee683e575e898bf0d8:/include/wx/msw/brush.h diff --git a/include/wx/msw/brush.h b/include/wx/msw/brush.h index c51b948fed..0b82aed988 100644 --- a/include/wx/msw/brush.h +++ b/include/wx/msw/brush.h @@ -12,7 +12,7 @@ #ifndef _WX_BRUSH_H_ #define _WX_BRUSH_H_ -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma interface "brush.h" #endif @@ -32,7 +32,7 @@ public: wxBrush(); wxBrush(const wxColour& col, int style = wxSOLID); wxBrush(const wxBitmap& stipple); - wxBrush(const wxBrush& brush) { Ref(brush); } + wxBrush(const wxBrush& brush) : wxGDIObject(brush) { Ref(brush); } virtual ~wxBrush(); virtual void SetColour(const wxColour& col);