Fixed wxValidator::Clone and friends to return a wxObject* to keep
MS VC++ happy git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2309 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
// Author: Kevin Smith
|
||||
// Modified by:
|
||||
// Created: Jan 22 1999
|
||||
// RCS-ID:
|
||||
// RCS-ID:
|
||||
// Copyright: (c) 1999 Kevin Smith
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
@@ -33,7 +33,7 @@ public:
|
||||
// if you're passing a reference to a validator.
|
||||
// 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 wxValidator *Clone(void) const { return new wxGenericValidator(*this); }
|
||||
virtual wxObject *Clone(void) const { return new wxGenericValidator(*this); }
|
||||
bool Copy(const wxGenericValidator& val);
|
||||
|
||||
// Called when the value in the window must be validated.
|
||||
|
Reference in New Issue
Block a user