STL-ification patch for wxMSW and wxGTK.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21876 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Mattia Barbon
2003-07-10 19:55:12 +00:00
parent 6992d326eb
commit 222ed1d678
73 changed files with 668 additions and 623 deletions

View File

@@ -73,20 +73,9 @@ bool wxTextValidator::Copy(const wxTextValidator& val)
m_validatorStyle = val.m_validatorStyle ;
m_stringValue = val.m_stringValue ;
wxStringList::Node *node = val.m_includeList.GetFirst() ;
while ( node )
{
wxChar *s = node->GetData();
m_includeList.Add(s);
node = node->GetNext();
}
node = val.m_excludeList.GetFirst() ;
while ( node )
{
wxChar *s = node->GetData();
m_excludeList.Add(s);
node = node->GetNext();
}
m_includeList = val.m_includeList;
m_excludeList = val.m_excludeList;
return TRUE;
}
@@ -232,38 +221,12 @@ bool wxTextValidator::TransferFromWindow(void)
void wxTextValidator::SetIncludeList(const wxStringList& list)
{
/*
if ( !M_VTEXTDATA )
return;
*/
m_includeList.Clear();
// TODO: replace with =
wxStringList::Node *node = list.GetFirst();
while ( node )
{
wxChar *s = node->GetData();
m_includeList.Add(s);
node = node->GetNext();
}
m_includeList = list;
}
void wxTextValidator::SetExcludeList(const wxStringList& list)
{
/*
if ( !M_VTEXTDATA )
return;
*/
m_excludeList.Clear();
// TODO: replace with =
wxStringList::Node *node = list.GetFirst() ;
while ( node )
{
wxChar *s = node->GetData();
m_excludeList.Add(s);
node = node->GetNext();
}
m_excludeList = list;
}
void wxTextValidator::OnChar(wxKeyEvent& event)