X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b5dbe15d0bacde245539f54c4d97af6b4696f01f..f1c40652a0c2d6752c57df1b8aed22fae7e118dd:/include/wx/validate.h diff --git a/include/wx/validate.h b/include/wx/validate.h index 83aa586093..55005f9d87 100644 --- a/include/wx/validate.h +++ b/include/wx/validate.h @@ -33,7 +33,7 @@ class WXDLLIMPEXP_FWD_CORE wxWindowBase; Note that wxValidator and derived classes use reference counting. */ -class WXDLLEXPORT wxValidator : public wxEvtHandler +class WXDLLIMPEXP_CORE wxValidator : public wxEvtHandler { public: wxValidator(); @@ -44,7 +44,7 @@ public: // Another possibility is to always pass a pointer to a new validator // (so the calling code can use a copy constructor of the relevant class). virtual wxObject *Clone() const - { return (wxValidator *)NULL; } + { return NULL; } bool Copy(const wxValidator& val) { m_validatorWindow = val.m_validatorWindow; return true; } @@ -74,10 +74,10 @@ private: static bool ms_isSilent; DECLARE_DYNAMIC_CLASS(wxValidator) - DECLARE_NO_COPY_CLASS(wxValidator) + wxDECLARE_NO_COPY_CLASS(wxValidator); }; -extern WXDLLEXPORT_DATA(const wxValidator) wxDefaultValidator; +extern WXDLLIMPEXP_DATA_CORE(const wxValidator) wxDefaultValidator; #define wxVALIDATOR_PARAM(val) val @@ -87,7 +87,7 @@ extern WXDLLEXPORT_DATA(const wxValidator) wxDefaultValidator; // a wxValidator parameter to avoid using "#if wxUSE_VALIDATORS" // everywhere class WXDLLIMPEXP_FWD_CORE wxValidator; - #define wxDefaultValidator (*((wxValidator *)NULL)) + #define wxDefaultValidator (*(NULL)) // this macro allows to avoid warnings about unused parameters when // wxUSE_VALIDATORS == 0