From 1a1498c08b07625baa087622e75637a2f15325b6 Mon Sep 17 00:00:00 2001
From: =?utf8?q?W=C5=82odzimierz=20Skiba?= <abx@abx.art.pl>
Date: Tue, 4 Oct 2005 18:14:41 +0000
Subject: [PATCH] Fix for mistake with const for non pointer/reference with
 corrections in documentation.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35797 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---
 docs/latex/wx/brush.tex        | 13 ++++++++++++-
 docs/latex/wx/pen.tex          |  2 +-
 include/wx/cocoa/brush.h       |  2 +-
 include/wx/cocoa/pen.h         |  2 +-
 include/wx/gtk/brush.h         |  2 +-
 include/wx/gtk/pen.h           |  2 +-
 include/wx/gtk1/brush.h        |  2 +-
 include/wx/gtk1/pen.h          |  2 +-
 include/wx/mac/carbon/brush.h  |  2 +-
 include/wx/mac/carbon/pen.h    |  2 +-
 include/wx/mac/classic/brush.h |  2 +-
 include/wx/mac/classic/pen.h   |  2 +-
 include/wx/mgl/brush.h         |  2 +-
 include/wx/mgl/pen.h           |  2 +-
 include/wx/msw/brush.h         |  2 +-
 include/wx/msw/pen.h           |  2 +-
 include/wx/os2/brush.h         |  2 +-
 include/wx/os2/pen.h           |  2 +-
 include/wx/palmos/brush.h      |  2 +-
 include/wx/palmos/pen.h        |  2 +-
 include/wx/x11/brush.h         |  2 +-
 include/wx/x11/pen.h           |  2 +-
 src/cocoa/brush.mm             |  2 +-
 src/cocoa/pen.mm               |  2 +-
 src/gtk/brush.cpp              |  2 +-
 src/gtk/pen.cpp                |  2 +-
 src/gtk1/brush.cpp             |  2 +-
 src/gtk1/pen.cpp               |  2 +-
 src/mac/carbon/brush.cpp       |  2 +-
 src/mac/carbon/pen.cpp         |  2 +-
 src/mac/classic/brush.cpp      |  2 +-
 src/mac/classic/pen.cpp        |  2 +-
 src/mgl/brush.cpp              |  2 +-
 src/mgl/pen.cpp                |  2 +-
 src/msw/brush.cpp              |  2 +-
 src/msw/pen.cpp                |  2 +-
 src/os2/brush.cpp              |  2 +-
 src/os2/pen.cpp                |  2 +-
 src/palmos/brush.cpp           |  2 +-
 src/palmos/pen.cpp             |  2 +-
 src/x11/brush.cpp              |  2 +-
 src/x11/pen.cpp                |  2 +-
 42 files changed, 53 insertions(+), 42 deletions(-)

diff --git a/docs/latex/wx/brush.tex b/docs/latex/wx/brush.tex
index dfc9a09aea..08b3f0cfbf 100644
--- a/docs/latex/wx/brush.tex
+++ b/docs/latex/wx/brush.tex
@@ -1,3 +1,14 @@
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% Name:        brush.tex
+%% Purpose:     wxPen docs
+%% Author:
+%% Modified by:
+%% Created:
+%% RCS-ID:      $Id$
+%% Copyright:   (c) wxWidgets
+%% License:     wxWindows license
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
 \section{\class{wxBrush}}\label{wxbrush}
 
 A brush is a drawing tool for filling in areas. It is used for painting
@@ -214,7 +225,7 @@ Sets the brush colour using a reference to a colour object.
 
 Sets the brush colour using a colour name from the colour database.
 
-\func{void}{SetColour}{\param{const unsigned char}{ red}, \param{const unsigned char}{ green}, \param{const unsigned char}{ blue}}
+\func{void}{SetColour}{\param{unsigned char}{ red}, \param{unsigned char}{ green}, \param{unsigned char}{ blue}}
 
 Sets the brush colour using red, green and blue values.
 
diff --git a/docs/latex/wx/pen.tex b/docs/latex/wx/pen.tex
index ec2a6a36e6..c92c4834be 100644
--- a/docs/latex/wx/pen.tex
+++ b/docs/latex/wx/pen.tex
@@ -262,7 +262,7 @@ Sets the pen cap style, which may be one of {\bf wxCAP\_ROUND}, {\bf wxCAP\_PROJ
 
 \func{void}{SetColour}{\param{const wxString\& }{colourName}}
 
-\func{void}{SetColour}{\param{const unsigned char}{ red}, \param{const unsigned char}{ green}, \param{const unsigned char}{ blue}}
+\func{void}{SetColour}{\param{unsigned char}{ red}, \param{unsigned char}{ green}, \param{unsigned char}{ blue}}
 
 The pen's colour is changed to the given colour.
 
diff --git a/include/wx/cocoa/brush.h b/include/wx/cocoa/brush.h
index d3655e5146..d4e48e0733 100644
--- a/include/wx/cocoa/brush.h
+++ b/include/wx/cocoa/brush.h
@@ -40,7 +40,7 @@ public:
 // Implementation
 // ------------------------------------------------------------------------
     virtual void SetColour(const wxColour& col) ;
-    virtual void SetColour(const unsigned char r, const unsigned char g, const unsigned char b) ;
+    virtual void SetColour(unsigned char r, unsigned char g, unsigned char b) ;
     virtual void SetStyle(int style) ;
     virtual void SetStipple(const wxBitmap& stipple) ;
 
diff --git a/include/wx/cocoa/pen.h b/include/wx/cocoa/pen.h
index 2b71f91e0c..642b0cca7d 100644
--- a/include/wx/cocoa/pen.h
+++ b/include/wx/cocoa/pen.h
@@ -47,7 +47,7 @@ public:
     virtual bool Ok() const { return (m_refData != NULL) ; }
 
     void SetColour(const wxColour& col) ;
-    void SetColour(const unsigned char r, const unsigned char g, const unsigned char b)  ;
+    void SetColour(unsigned char r, unsigned char g, unsigned char b)  ;
 
     void SetWidth(int width);
     void SetStyle(int style);
diff --git a/include/wx/gtk/brush.h b/include/wx/gtk/brush.h
index 2e46a0a9a4..911a4783fa 100644
--- a/include/wx/gtk/brush.h
+++ b/include/wx/gtk/brush.h
@@ -51,7 +51,7 @@ public:
     wxBitmap *GetStipple() const;
 
     void SetColour( const wxColour& col );
-    void SetColour( const unsigned char r, const unsigned char g, const unsigned char b );
+    void SetColour( unsigned char r, unsigned char g, unsigned char b );
     void SetStyle( int style );
     void SetStipple( const wxBitmap& stipple );
 
diff --git a/include/wx/gtk/pen.h b/include/wx/gtk/pen.h
index 17dd2ab6b3..2c6b707d73 100644
--- a/include/wx/gtk/pen.h
+++ b/include/wx/gtk/pen.h
@@ -51,7 +51,7 @@ public:
     bool operator != (const wxPen& pen) const { return !(*this == pen); }
 
     void SetColour( const wxColour &colour );
-    void SetColour( const unsigned char red, const unsigned char green, const unsigned char blue );
+    void SetColour( unsigned char red, unsigned char green, unsigned char blue );
     void SetCap( int capStyle );
     void SetJoin( int joinStyle );
     void SetStyle( int style );
diff --git a/include/wx/gtk1/brush.h b/include/wx/gtk1/brush.h
index 2e46a0a9a4..911a4783fa 100644
--- a/include/wx/gtk1/brush.h
+++ b/include/wx/gtk1/brush.h
@@ -51,7 +51,7 @@ public:
     wxBitmap *GetStipple() const;
 
     void SetColour( const wxColour& col );
-    void SetColour( const unsigned char r, const unsigned char g, const unsigned char b );
+    void SetColour( unsigned char r, unsigned char g, unsigned char b );
     void SetStyle( int style );
     void SetStipple( const wxBitmap& stipple );
 
diff --git a/include/wx/gtk1/pen.h b/include/wx/gtk1/pen.h
index 17dd2ab6b3..2c6b707d73 100644
--- a/include/wx/gtk1/pen.h
+++ b/include/wx/gtk1/pen.h
@@ -51,7 +51,7 @@ public:
     bool operator != (const wxPen& pen) const { return !(*this == pen); }
 
     void SetColour( const wxColour &colour );
-    void SetColour( const unsigned char red, const unsigned char green, const unsigned char blue );
+    void SetColour( unsigned char red, unsigned char green, unsigned char blue );
     void SetCap( int capStyle );
     void SetJoin( int joinStyle );
     void SetStyle( int style );
diff --git a/include/wx/mac/carbon/brush.h b/include/wx/mac/carbon/brush.h
index e2e180c4d4..7ffb716cb0 100644
--- a/include/wx/mac/carbon/brush.h
+++ b/include/wx/mac/carbon/brush.h
@@ -41,7 +41,7 @@ public:
     ~wxBrush();
 
     virtual void SetColour(const wxColour& col) ;
-    virtual void SetColour(const unsigned char r, const unsigned char g, const unsigned char b) ;
+    virtual void SetColour(unsigned char r, unsigned char g, unsigned char b) ;
     virtual void SetStyle(int style)  ;
     virtual void SetStipple(const wxBitmap& stipple)  ;
     virtual void MacSetTheme(short macThemeBrush) ;
diff --git a/include/wx/mac/carbon/pen.h b/include/wx/mac/carbon/pen.h
index b1032c2fb7..1a3ea6b8fd 100644
--- a/include/wx/mac/carbon/pen.h
+++ b/include/wx/mac/carbon/pen.h
@@ -65,7 +65,7 @@ public:
 
   // Override in order to recreate the pen
   void SetColour(const wxColour& col) ;
-  void SetColour(const unsigned char r, const unsigned char g, const unsigned char b) ;
+  void SetColour(unsigned char r, unsigned char g, unsigned char b) ;
 
   void SetWidth(int width)  ;
   void SetStyle(int style)  ;
diff --git a/include/wx/mac/classic/brush.h b/include/wx/mac/classic/brush.h
index f2535ac5f2..4333b5f0f4 100644
--- a/include/wx/mac/classic/brush.h
+++ b/include/wx/mac/classic/brush.h
@@ -41,7 +41,7 @@ public:
     ~wxBrush();
 
     virtual void SetColour(const wxColour& col)  ;
-    virtual void SetColour(const unsigned char r, const unsigned char g, const unsigned char b)  ;
+    virtual void SetColour(unsigned char r, unsigned char g, unsigned char b)  ;
     virtual void SetStyle(int style)  ;
     virtual void SetStipple(const wxBitmap& stipple)  ;
     virtual void SetMacTheme(short macThemeBrush) ;
diff --git a/include/wx/mac/classic/pen.h b/include/wx/mac/classic/pen.h
index cac09f1310..fba7b41cc5 100644
--- a/include/wx/mac/classic/pen.h
+++ b/include/wx/mac/classic/pen.h
@@ -65,7 +65,7 @@ public:
 
   // Override in order to recreate the pen
   void SetColour(const wxColour& col) ;
-  void SetColour(const unsigned char r, const unsigned char g, const unsigned char b)  ;
+  void SetColour(unsigned char r, unsigned char g, unsigned char b)  ;
 
   void SetWidth(int width)  ;
   void SetStyle(int style)  ;
diff --git a/include/wx/mgl/brush.h b/include/wx/mgl/brush.h
index c419a9f5ae..cdb9dc8fb2 100644
--- a/include/wx/mgl/brush.h
+++ b/include/wx/mgl/brush.h
@@ -45,7 +45,7 @@ public:
     wxBitmap *GetStipple() const;
 
     void SetColour(const wxColour& col);
-    void SetColour(const unsigned char r, const unsigned char g, const unsigned char b);
+    void SetColour(unsigned char r, unsigned char g, unsigned char b);
     void SetStyle(int style);
     void SetStipple(const wxBitmap& stipple);
 
diff --git a/include/wx/mgl/pen.h b/include/wx/mgl/pen.h
index a4f59afc5b..1bedb8ace5 100644
--- a/include/wx/mgl/pen.h
+++ b/include/wx/mgl/pen.h
@@ -40,7 +40,7 @@ public:
     bool operator != (const wxPen& pen) const;
 
     void SetColour(const wxColour &colour);
-    void SetColour(const unsigned char red, const unsigned char green, const unsigned char blue);
+    void SetColour(unsigned char red, unsigned char green, unsigned char blue);
     void SetCap(int capStyle);
     void SetJoin(int joinStyle);
     void SetStyle(int style);
diff --git a/include/wx/msw/brush.h b/include/wx/msw/brush.h
index 4452e29c24..22784809f2 100644
--- a/include/wx/msw/brush.h
+++ b/include/wx/msw/brush.h
@@ -32,7 +32,7 @@ public:
     virtual ~wxBrush();
 
     virtual void SetColour(const wxColour& col);
-    virtual void SetColour(const unsigned char r, const unsigned char g, const unsigned char b);
+    virtual void SetColour(unsigned char r, unsigned char g, unsigned char b);
     virtual void SetStyle(int style);
     virtual void SetStipple(const wxBitmap& stipple);
 
diff --git a/include/wx/msw/pen.h b/include/wx/msw/pen.h
index b5439e8bdf..56560d3834 100644
--- a/include/wx/msw/pen.h
+++ b/include/wx/msw/pen.h
@@ -102,7 +102,7 @@ public:
 
     // Override in order to recreate the pen
     void SetColour(const wxColour& col);
-    void SetColour(const unsigned char r, const unsigned char g, const unsigned char b);
+    void SetColour(unsigned char r, unsigned char g, unsigned char b);
 
     void SetWidth(int width);
     void SetStyle(int style);
diff --git a/include/wx/os2/brush.h b/include/wx/os2/brush.h
index 71661f2277..da2153c90b 100644
--- a/include/wx/os2/brush.h
+++ b/include/wx/os2/brush.h
@@ -53,7 +53,7 @@ public:
     inline bool operator != (const wxBrush& rBrush) const { return m_refData != rBrush.m_refData; }
 
     virtual void SetColour(const wxColour& rColour);
-    virtual void SetColour(const unsigned char cRed, const unsigned char cGreen, const unsigned char cBrush);
+    virtual void SetColour(unsigned char cRed, unsigned char cGreen, unsigned char cBrush);
     virtual void SetPS(HPS hPS);
     virtual void SetStyle(int nStyle)  ;
     virtual void SetStipple(const wxBitmap& rStipple);
diff --git a/include/wx/os2/pen.h b/include/wx/os2/pen.h
index a2b65cb6b9..e89c11a158 100644
--- a/include/wx/os2/pen.h
+++ b/include/wx/os2/pen.h
@@ -68,7 +68,7 @@ public:
     // Override in order to recreate the pen
     //
     void SetColour(const wxColour& rColour);
-    void SetColour(const unsigned char cRed, const unsigned char cGreen, const unsigned char cBlue);
+    void SetColour(unsigned char cRed, unsigned char cGreen, unsigned char cBlue);
 
     void SetWidth(int nWidth);
     void SetStyle(int nStyle);
diff --git a/include/wx/palmos/brush.h b/include/wx/palmos/brush.h
index a831ebda8c..37b4f2388f 100644
--- a/include/wx/palmos/brush.h
+++ b/include/wx/palmos/brush.h
@@ -32,7 +32,7 @@ public:
     virtual ~wxBrush();
 
     virtual void SetColour(const wxColour& col);
-    virtual void SetColour(const unsigned char r, const unsigned char g, const unsigned char b);
+    virtual void SetColour(unsigned char r, unsigned char g, unsigned char b);
     virtual void SetStyle(int style);
     virtual void SetStipple(const wxBitmap& stipple);
 
diff --git a/include/wx/palmos/pen.h b/include/wx/palmos/pen.h
index bb4b023a8b..de6691ac2a 100644
--- a/include/wx/palmos/pen.h
+++ b/include/wx/palmos/pen.h
@@ -102,7 +102,7 @@ public:
 
     // Override in order to recreate the pen
     void SetColour(const wxColour& col);
-    void SetColour(const unsigned char r, const unsigned char g, const unsigned char b);
+    void SetColour(unsigned char r, unsigned char g, unsigned char b);
 
     void SetWidth(int width);
     void SetStyle(int style);
diff --git a/include/wx/x11/brush.h b/include/wx/x11/brush.h
index 95629e88cb..6f4f1536f8 100644
--- a/include/wx/x11/brush.h
+++ b/include/wx/x11/brush.h
@@ -48,7 +48,7 @@ public:
     wxBitmap *GetStipple() const;
 
     void SetColour( const wxColour& col );
-    void SetColour( const unsigned char r, const unsigned char g, const unsigned char b );
+    void SetColour( unsigned char r, unsigned char g, unsigned char b );
     void SetStyle( int style );
     void SetStipple( const wxBitmap& stipple );
 
diff --git a/include/wx/x11/pen.h b/include/wx/x11/pen.h
index 40f0ccf341..d5c042a14d 100644
--- a/include/wx/x11/pen.h
+++ b/include/wx/x11/pen.h
@@ -47,7 +47,7 @@ public:
     bool operator != (const wxPen& pen) const { return !(*this == pen); }
 
     void SetColour( const wxColour &colour );
-    void SetColour( const unsigned char red, const unsigned char green, const unsigned char blue );
+    void SetColour( unsigned char red, unsigned char green, unsigned char blue );
     void SetCap( int capStyle );
     void SetJoin( int joinStyle );
     void SetStyle( int style );
diff --git a/src/cocoa/brush.mm b/src/cocoa/brush.mm
index eeafeff7e8..4dc2963998 100644
--- a/src/cocoa/brush.mm
+++ b/src/cocoa/brush.mm
@@ -173,7 +173,7 @@ void wxBrush::SetColour(const wxColour& col)
     M_BRUSHDATA->SetColour(col);
 }
 
-void wxBrush::SetColour(const unsigned char r, const unsigned char g, const unsigned char b)
+void wxBrush::SetColour(unsigned char r, unsigned char g, unsigned char b)
 {
     AllocExclusive();
     M_BRUSHDATA->SetColour(wxColour(r,g,b));
diff --git a/src/cocoa/pen.mm b/src/cocoa/pen.mm
index b82e879cad..fcad9b39f2 100644
--- a/src/cocoa/pen.mm
+++ b/src/cocoa/pen.mm
@@ -303,7 +303,7 @@ void wxPen::SetColour(const wxColour& col)
     M_PENDATA->SetColour(col);
 }
 
-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)
 {
     AllocExclusive();
     M_PENDATA->SetColour(wxColour(r, g, b));
diff --git a/src/gtk/brush.cpp b/src/gtk/brush.cpp
index f2237b0a66..3d4549539f 100644
--- a/src/gtk/brush.cpp
+++ b/src/gtk/brush.cpp
@@ -137,7 +137,7 @@ void wxBrush::SetColour( const wxColour& col )
     M_BRUSHDATA->m_colour = col;
 }
 
-void wxBrush::SetColour( const unsigned char r, const unsigned char g, const unsigned char b )
+void wxBrush::SetColour( unsigned char r, unsigned char g, unsigned char b )
 {
     AllocExclusive();
 
diff --git a/src/gtk/pen.cpp b/src/gtk/pen.cpp
index cecc379b85..26e47769b1 100644
--- a/src/gtk/pen.cpp
+++ b/src/gtk/pen.cpp
@@ -132,7 +132,7 @@ void wxPen::SetDashes( int number_of_dashes, const wxDash *dash )
     M_PENDATA->m_dash = (wxGTKDash *)dash;
 }
 
-void wxPen::SetColour( const unsigned char red, const unsigned char green, const unsigned char blue )
+void wxPen::SetColour( unsigned char red, unsigned char green, unsigned char blue )
 {
     AllocExclusive();
 
diff --git a/src/gtk1/brush.cpp b/src/gtk1/brush.cpp
index f2237b0a66..3d4549539f 100644
--- a/src/gtk1/brush.cpp
+++ b/src/gtk1/brush.cpp
@@ -137,7 +137,7 @@ void wxBrush::SetColour( const wxColour& col )
     M_BRUSHDATA->m_colour = col;
 }
 
-void wxBrush::SetColour( const unsigned char r, const unsigned char g, const unsigned char b )
+void wxBrush::SetColour( unsigned char r, unsigned char g, unsigned char b )
 {
     AllocExclusive();
 
diff --git a/src/gtk1/pen.cpp b/src/gtk1/pen.cpp
index cecc379b85..26e47769b1 100644
--- a/src/gtk1/pen.cpp
+++ b/src/gtk1/pen.cpp
@@ -132,7 +132,7 @@ void wxPen::SetDashes( int number_of_dashes, const wxDash *dash )
     M_PENDATA->m_dash = (wxGTKDash *)dash;
 }
 
-void wxPen::SetColour( const unsigned char red, const unsigned char green, const unsigned char blue )
+void wxPen::SetColour( unsigned char red, unsigned char green, unsigned char blue )
 {
     AllocExclusive();
 
diff --git a/src/mac/carbon/brush.cpp b/src/mac/carbon/brush.cpp
index b7ada08a6d..5846462020 100644
--- a/src/mac/carbon/brush.cpp
+++ b/src/mac/carbon/brush.cpp
@@ -129,7 +129,7 @@ void wxBrush::SetColour(const wxColour& col)
     RealizeResource();
 }
 
-void wxBrush::SetColour(const unsigned char r, const unsigned char g, const unsigned char b)
+void wxBrush::SetColour(unsigned char r, unsigned char g, unsigned char b)
 {
     Unshare();
 
diff --git a/src/mac/carbon/pen.cpp b/src/mac/carbon/pen.cpp
index be3a7a405a..2fb238858a 100644
--- a/src/mac/carbon/pen.cpp
+++ b/src/mac/carbon/pen.cpp
@@ -107,7 +107,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();
 
diff --git a/src/mac/classic/brush.cpp b/src/mac/classic/brush.cpp
index 49d0c53ad2..43fc26b6d5 100644
--- a/src/mac/classic/brush.cpp
+++ b/src/mac/classic/brush.cpp
@@ -128,7 +128,7 @@ void wxBrush::SetColour(const wxColour& col)
     RealizeResource();
 }
 
-void wxBrush::SetColour(const unsigned char r, const unsigned char g, const unsigned char b)
+void wxBrush::SetColour(unsigned char r, unsigned char g, unsigned char b)
 {
     Unshare();
 
diff --git a/src/mac/classic/pen.cpp b/src/mac/classic/pen.cpp
index 2f27d50493..2d46ddc01d 100644
--- a/src/mac/classic/pen.cpp
+++ b/src/mac/classic/pen.cpp
@@ -106,7 +106,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();
 
diff --git a/src/mgl/brush.cpp b/src/mgl/brush.cpp
index 26ea8e74f6..8120943325 100644
--- a/src/mgl/brush.cpp
+++ b/src/mgl/brush.cpp
@@ -223,7 +223,7 @@ void wxBrush::SetColour(const wxColour& col)
     M_BRUSHDATA->m_colour = col;
 }
 
-void wxBrush::SetColour(const unsigned char r, const unsigned char g, const unsigned char b)
+void wxBrush::SetColour(unsigned char r, unsigned char g, unsigned char b)
 {
     AllocExclusive();
     M_BRUSHDATA->m_colour.Set(r, g, b);
diff --git a/src/mgl/pen.cpp b/src/mgl/pen.cpp
index ce9e56c741..5e125c2d03 100644
--- a/src/mgl/pen.cpp
+++ b/src/mgl/pen.cpp
@@ -138,7 +138,7 @@ void wxPen::SetDashes(int number_of_dashes, const wxDash *dash)
     M_PENDATA->m_dash = (wxDash *)dash; /* TODO */
 }
 
-void wxPen::SetColour(const unsigned char red, const unsigned char green, const unsigned char blue)
+void wxPen::SetColour(unsigned char red, unsigned char green, unsigned char blue)
 {
     AllocExclusive();
     M_PENDATA->m_colour.Set(red, green, blue);
diff --git a/src/msw/brush.cpp b/src/msw/brush.cpp
index 3ca22f6375..e377793c1c 100644
--- a/src/msw/brush.cpp
+++ b/src/msw/brush.cpp
@@ -314,7 +314,7 @@ void wxBrush::SetColour(const wxColour& col)
     M_BRUSHDATA->SetColour(col);
 }
 
-void wxBrush::SetColour(const unsigned char r, const unsigned char g, const unsigned char b)
+void wxBrush::SetColour(unsigned char r, unsigned char g, unsigned char b)
 {
     AllocExclusive();
 
diff --git a/src/msw/pen.cpp b/src/msw/pen.cpp
index ddded9fc63..e3609b79bb 100644
--- a/src/msw/pen.cpp
+++ b/src/msw/pen.cpp
@@ -305,7 +305,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();
 
diff --git a/src/os2/brush.cpp b/src/os2/brush.cpp
index dc81e06918..eeb6af0c86 100644
--- a/src/os2/brush.cpp
+++ b/src/os2/brush.cpp
@@ -273,7 +273,7 @@ void wxBrush::SetColour( const wxColour& rColour )
     RealizeResource();
 }
 
-void wxBrush::SetColour(const unsigned char cRed, const unsigned char cGreen, const unsigned char cBlue)
+void wxBrush::SetColour(unsigned char cRed, unsigned char cGreen, unsigned char cBlue)
 {
     Unshare();
     M_BRUSHDATA->m_vColour.Set( cRed, cGreen, cBlue );
diff --git a/src/os2/pen.cpp b/src/os2/pen.cpp
index cd6504be81..91efcb3ab3 100644
--- a/src/os2/pen.cpp
+++ b/src/os2/pen.cpp
@@ -353,7 +353,7 @@ void wxPen::SetColour( const wxColour& rColour )
     RealizeResource();
 } // end of wxPen::SetColour
 
-void wxPen::SetColour( const unsigned char cRed, const unsigned char cGreen, const unsigned char cBlue)
+void wxPen::SetColour( unsigned char cRed, unsigned char cGreen, unsigned char cBlue)
 {
     Unshare();
     M_PENDATA->m_vColour.Set(cRed, cGreen, cBlue);
diff --git a/src/palmos/brush.cpp b/src/palmos/brush.cpp
index 3711839c57..a87d4b1f6d 100644
--- a/src/palmos/brush.cpp
+++ b/src/palmos/brush.cpp
@@ -117,7 +117,7 @@ void wxBrush::SetColour(const wxColour& col)
 {
 }
 
-void wxBrush::SetColour(const unsigned char r, const unsigned char g, const unsigned char b)
+void wxBrush::SetColour(unsigned char r, unsigned char g, unsigned char b)
 {
 }
 
diff --git a/src/palmos/pen.cpp b/src/palmos/pen.cpp
index b0d821755a..7d63a301d5 100644
--- a/src/palmos/pen.cpp
+++ b/src/palmos/pen.cpp
@@ -88,7 +88,7 @@ void wxPen::SetColour(const wxColour& col)
 {
 }
 
-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)
 {
 }
 
diff --git a/src/x11/brush.cpp b/src/x11/brush.cpp
index a239850cca..736dcc6cfd 100644
--- a/src/x11/brush.cpp
+++ b/src/x11/brush.cpp
@@ -138,7 +138,7 @@ void wxBrush::SetColour( const wxColour& col )
     M_BRUSHDATA->m_colour = col;
 }
 
-void wxBrush::SetColour( const unsigned char r, const unsigned char g, const unsigned char b )
+void wxBrush::SetColour( unsigned char r, unsigned char g, unsigned char b )
 {
     AllocExclusive();
 
diff --git a/src/x11/pen.cpp b/src/x11/pen.cpp
index a843cdce9f..f6dccc9a9e 100644
--- a/src/x11/pen.cpp
+++ b/src/x11/pen.cpp
@@ -122,7 +122,7 @@ void wxPen::SetDashes( int number_of_dashes, const wxDash *dash )
     M_PENDATA->m_dash = (wxX11Dash *)dash; // TODO
 }
 
-void wxPen::SetColour( const unsigned char red, const unsigned char green, const unsigned char blue )
+void wxPen::SetColour( unsigned char red, unsigned char green, unsigned char blue )
 {
     AllocExclusive();
 
-- 
2.50.0

