X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/027d45e8fc3cbb7a1efa91c727bcee6c52c4519c..178d7ec235d6309f3eda37f02238a67dcf81ff03:/src/mac/carbon/treectrl.cpp diff --git a/src/mac/carbon/treectrl.cpp b/src/mac/carbon/treectrl.cpp index 164b37af75..7977dabef9 100644 --- a/src/mac/carbon/treectrl.cpp +++ b/src/mac/carbon/treectrl.cpp @@ -29,14 +29,17 @@ wxTreeCtrl::wxTreeCtrl() bool wxTreeCtrl::Create(wxWindow *parent, wxWindowID id, const wxPoint& pos, const wxSize& size, - long style, const wxValidator& validator, const wxString& name) + long style, const wxValidator& wxVALIDATOR_PARAM(validator), + const wxString& name) { m_imageListNormal = NULL; m_imageListState = NULL; m_textCtrl = NULL; SetName(name); +#if wxUSE_VALIDATORS SetValidator(validator); +#endif SetParent(parent); m_windowStyle = style;