X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8936f975b4812fd8ef6f4c138a1697322313da39..edc09871744140f16b2ef6b7abaa2289d7deb260:/include/wx/colour.h diff --git a/include/wx/colour.h b/include/wx/colour.h index 20b673b39a..14020d84f3 100644 --- a/include/wx/colour.h +++ b/include/wx/colour.h @@ -27,8 +27,9 @@ class WXDLLEXPORT wxColour; ChannelType alpha = wxALPHA_OPAQUE ) \ { Set(red, green, blue, alpha); } \ wxColour( unsigned long colRGB ) { Set(colRGB); } \ - wxColour(const wxString &colourName) { Set(colourName); } \ - wxColour(const wxChar *colourName) { Set(colourName); } + wxColour(const wxString& colourName) { Set(colourName); } \ + wxColour(const char *colourName) { Set(colourName); } \ + wxColour(const wchar_t *colourName) { Set(colourName); } // flags for wxColour -> wxString conversion (see wxColour::GetAsString) @@ -74,9 +75,6 @@ public: { InitRGBA(red,green,blue, alpha); } // implemented in colourcmn.cpp - bool Set(const wxChar *str) - { return FromString(str); } - bool Set(const wxString &str) { return FromString(str); } @@ -120,7 +118,7 @@ protected: virtual void InitRGBA(ChannelType r, ChannelType g, ChannelType b, ChannelType a) = 0; - virtual bool FromString(const wxChar *s); + virtual bool FromString(const wxString& s); };