]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/cmndata.h
fixed typo in wxString::swap() which was completely broken
[wxWidgets.git] / include / wx / cmndata.h
index b85b01cb269d7c0bfa0fd00ee439a5e19a9e7a88..008338a9449c8d9cb963ab3cee2aea20fcb62adf 100644 (file)
@@ -35,11 +35,12 @@ public:
 
     void SetChooseFull(bool flag) { chooseFull = flag; }
     bool GetChooseFull() const { return chooseFull; }
-    void SetColour(wxColour& colour) { dataColour = colour; }
-    wxColour &GetColour() { return dataColour; }
+    void SetColour(const wxColour& colour) { dataColour = colour; }
+    const wxColour& GetColour() const { return dataColour; }
+    wxColour& GetColour() { return dataColour; }
 
     // Array of 16 custom colours
-    void SetCustomColour(int i, wxColour& colour);
+    void SetCustomColour(int i, const wxColour& colour);
     wxColour GetCustomColour(int i);
 
     void operator=(const wxColourData& data);