Add iterators to wxVector, use std::vector in STL mode, correct wxVector::erase()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47712 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -200,7 +200,7 @@ public:
|
||||
if( ptr == m_vec.size() ) return;
|
||||
if( doDelete )
|
||||
delete m_vec[ptr].data;
|
||||
m_vec.erase( ptr );
|
||||
m_vec.erase( m_vec.begin() + ptr );
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -244,7 +244,7 @@ public:
|
||||
{
|
||||
if( doDelete )
|
||||
delete m_vec[todel].data;
|
||||
m_vec.erase( todel );
|
||||
m_vec.erase( m_vec.begin() + todel );
|
||||
}
|
||||
}
|
||||
private:
|
||||
|
Reference in New Issue
Block a user