From: Vadim Zeitlin Date: Sun, 20 Jan 2013 02:09:52 +0000 (+0000) Subject: Add copy constructor to wxValidator. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/46286d9a614979014bc590bf9fec8f2883de7ee7 Add copy constructor to wxValidator. It can be useful for implementing Clone() in the derived classes. Closes #2146. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73403 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/validate.h b/include/wx/validate.h index 27473364bc..3f60b59389 100644 --- a/include/wx/validate.h +++ b/include/wx/validate.h @@ -37,6 +37,10 @@ class WXDLLIMPEXP_CORE wxValidator : public wxEvtHandler { public: wxValidator(); + wxValidator(const wxValidator& other) + : m_validatorWindow(other.m_validatorWindow) + { + } virtual ~wxValidator(); // Make a clone of this validator (or return NULL) - currently necessary @@ -87,7 +91,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;