]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/pen.cpp
Test to avoid crashes in some circumstances
[wxWidgets.git] / src / mac / carbon / pen.cpp
index be3a7a405aa1f1ffd997557770c593432584e8d7..7f0acfebe5349bf668a4bd69535537e51519fc6c 100644 (file)
 
 #include "wx/wxprec.h"
 
-#include "wx/utils.h"
 #include "wx/pen.h"
 
+#ifndef WX_PRECOMP
+    #include "wx/utils.h"
+#endif
+
 IMPLEMENT_DYNAMIC_CLASS(wxPen, wxGDIObject)
 
 wxPenRefData::wxPenRefData()
@@ -107,7 +110,7 @@ void wxPen::SetColour(const wxColour& col)
     RealizeResource();
 }
 
-void wxPen::SetColour(const unsigned char r, const unsigned char g, const unsigned char b)
+void wxPen::SetColour(unsigned char r, unsigned char g, unsigned char b)
 {
     Unshare();