X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/53a2db124c633f80bdb16336084262037d879a2c..cbeda384e51acb82e13994cb67ac1714669cae10:/include/wx/validate.h diff --git a/include/wx/validate.h b/include/wx/validate.h index 1e3f4df94c..55005f9d87 100644 --- a/include/wx/validate.h +++ b/include/wx/validate.h @@ -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,7 +74,7 @@ private: static bool ms_isSilent; DECLARE_DYNAMIC_CLASS(wxValidator) - DECLARE_NO_COPY_CLASS(wxValidator) + wxDECLARE_NO_COPY_CLASS(wxValidator); }; extern WXDLLIMPEXP_DATA_CORE(const wxValidator) wxDefaultValidator; @@ -87,7 +87,7 @@ extern WXDLLIMPEXP_DATA_CORE(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