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:
@@ -37,6 +37,10 @@ class WXDLLIMPEXP_CORE wxValidator : public wxEvtHandler
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
wxValidator();
|
wxValidator();
|
||||||
|
wxValidator(const wxValidator& other)
|
||||||
|
: m_validatorWindow(other.m_validatorWindow)
|
||||||
|
{
|
||||||
|
}
|
||||||
virtual ~wxValidator();
|
virtual ~wxValidator();
|
||||||
|
|
||||||
// Make a clone of this validator (or return NULL) - currently necessary
|
// Make a clone of this validator (or return NULL) - currently necessary
|
||||||
@@ -87,7 +91,7 @@ private:
|
|||||||
static bool ms_isSilent;
|
static bool ms_isSilent;
|
||||||
|
|
||||||
DECLARE_DYNAMIC_CLASS(wxValidator)
|
DECLARE_DYNAMIC_CLASS(wxValidator)
|
||||||
wxDECLARE_NO_COPY_CLASS(wxValidator);
|
wxDECLARE_NO_ASSIGN_CLASS(wxValidator);
|
||||||
};
|
};
|
||||||
|
|
||||||
extern WXDLLIMPEXP_DATA_CORE(const wxValidator) wxDefaultValidator;
|
extern WXDLLIMPEXP_DATA_CORE(const wxValidator) wxDefaultValidator;
|
||||||
|
Reference in New Issue
Block a user