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
This commit is contained in:
Vadim Zeitlin 2013-01-20 02:09:52 +00:00
parent 12ce0a7402
commit 46286d9a61

View File

@ -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;