X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/223d09f6b523aac674ef9b72a883dfa8d37c5d4e..6842d18650b487249b4ae29d0d7e17231b24cde8:/src/common/ctrlcmn.cpp diff --git a/src/common/ctrlcmn.cpp b/src/common/ctrlcmn.cpp index 916a4e578d..be7735196d 100644 --- a/src/common/ctrlcmn.cpp +++ b/src/common/ctrlcmn.cpp @@ -18,7 +18,7 @@ // ---------------------------------------------------------------------------- #ifdef __GNUG__ - #pragma implementation "ctrlcmn.h" + #pragma implementation "controlbase.h" #endif // For compilers that support precompilation, includes "wx.h". @@ -42,7 +42,13 @@ bool wxControlBase::CreateControl(wxWindowBase *parent, const wxPoint& pos, const wxSize& size, long style, +#if wxUSE_VALIDATORS +# if defined(__VISAGECPP__) + const wxValidator* validator, +# else const wxValidator& validator, +# endif +#endif const wxString& name) { // even if it's possible to create controls without parents in some port,