]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/gtk/brush.h
Added missing const for comparision operators.
[wxWidgets.git] / include / wx / gtk / brush.h
index 2859c6ad397a1355cfb5c342fc3489c78037762d..de6bf6f62a4abac0c47547540f31521476e51548 100644 (file)
@@ -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; }