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:
Robin Dunn
1999-04-30 02:39:50 +00:00
parent 80ec928cf7
commit ca298c8852
6 changed files with 104 additions and 104 deletions

View File

@@ -2080,7 +2080,7 @@ bool wxWindow::MSWProcessMessage(WXMSG* pMsg)
bool bForward = TRUE,
bWindowChange = FALSE;
switch ( msg->wParam )
switch ( msg->wParam )
{
case VK_TAB:
if ( lDlgCode & DLGC_WANTTAB ) {
@@ -4449,7 +4449,7 @@ void wxWindow::SetValidator(const wxValidator& validator)
{
if ( m_windowValidator )
delete m_windowValidator;
m_windowValidator = validator.Clone();
m_windowValidator = (wxValidator*)validator.Clone();
if ( m_windowValidator )
m_windowValidator->SetWindow(this) ;