X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c27181d1a10a2bd6b87f998ec65f7d4380d52b3c..661698e54f2bc599dc1a961ffbae08ccdd6b9b97:/include/wx/validate.h diff --git a/include/wx/validate.h b/include/wx/validate.h index f6832d16d1..e79a3becb5 100644 --- a/include/wx/validate.h +++ b/include/wx/validate.h @@ -37,6 +37,11 @@ class WXDLLIMPEXP_CORE wxValidator : public wxEvtHandler { public: wxValidator(); + wxValidator(const wxValidator& other) + : wxEvtHandler() + , m_validatorWindow(other.m_validatorWindow) + { + } virtual ~wxValidator(); // Make a clone of this validator (or return NULL) - currently necessary @@ -74,8 +79,8 @@ public: // unnaturally: it disabled the bell when it was true, not false as could // be expected; use SuppressBellOnError() instead #if WXWIN_COMPATIBILITY_2_8 - wxDEPRECATED_INLINE( - static void SetBellOnError(bool doIt = true), + static wxDEPRECATED_INLINE( + void SetBellOnError(bool doIt = true), ms_isSilent = doIt; ) #endif @@ -87,7 +92,7 @@ private: static bool ms_isSilent; DECLARE_DYNAMIC_CLASS(wxValidator) - wxDECLARE_NO_COPY_CLASS(wxValidator); + wxDECLARE_NO_ASSIGN_CLASS(wxValidator); }; extern WXDLLIMPEXP_DATA_CORE(const wxValidator) wxDefaultValidator;