X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c89f5c02b1ecc6098b21b39b01509dd387c1cb34..b6e2eddeaf7e559589ce41ac41e88f9bd71c5a08:/include/wx/gtk1/brush.h diff --git a/include/wx/gtk1/brush.h b/include/wx/gtk1/brush.h index 2859c6ad39..de6bf6f62a 100644 --- a/include/wx/gtk1/brush.h +++ b/include/wx/gtk1/brush.h @@ -11,7 +11,7 @@ #ifndef __GTKBRUSHH__ #define __GTKBRUSHH__ -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma interface #endif @@ -36,11 +36,13 @@ class wxBrush: public wxGDIObject public: wxBrush() { } - wxBrush( const wxColour &colour, int style ); + wxBrush( const wxColour &colour, int style = wxSOLID ); wxBrush( const wxBitmap &stippleBitmap ); ~wxBrush(); - wxBrush( const wxBrush &brush ) { Ref(brush); } + wxBrush( const wxBrush &brush ) + : wxGDIObject() + { Ref(brush); } wxBrush& operator = ( const wxBrush& brush ) { Ref(brush); return *this; } bool Ok() const { return m_refData != NULL; }