Make wxColourData parameter of wxColourDialog ctor const

This parameter is not modified by wxColourDialog (this might have been
the case, or at least the plan, some long time ago) and so has no reason
not to be "const".

Just add the qualifier to ctor and Create() in all ports.

Closes https://github.com/wxWidgets/wxWidgets/pull/1421

Closes #12511.
This commit is contained in:
Igor Korot
2019-07-16 07:21:59 -05:00
committed by Vadim Zeitlin
parent e21c4c78ca
commit 1879e8e646
12 changed files with 22 additions and 22 deletions

View File

@@ -23,9 +23,9 @@ class WXDLLIMPEXP_CORE wxColourDialog: public wxDialog
wxDECLARE_DYNAMIC_CLASS(wxColourDialog);
public:
wxColourDialog();
wxColourDialog(wxWindow *parent, wxColourData *data = NULL);
wxColourDialog(wxWindow *parent, const wxColourData *data = NULL);
bool Create(wxWindow *parent, wxColourData *data = NULL);
bool Create(wxWindow *parent, const wxColourData *data = NULL);
int ShowModal() wxOVERRIDE;
wxColourData& GetColourData() { return m_colourData; }