use RemoveAt instead of Remove
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10898 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -140,7 +140,7 @@ void wxMenu::UpdateAccel(wxMenuItem *item)
|
||||
if ( accel )
|
||||
m_accels[n] = accel;
|
||||
else
|
||||
m_accels.Remove(n);
|
||||
m_accels.RemoveAt(n);
|
||||
}
|
||||
|
||||
if ( IsAttached() )
|
||||
@@ -269,7 +269,7 @@ wxMenuItem *wxMenu::DoRemove(wxMenuItem *item)
|
||||
{
|
||||
delete m_accels[n];
|
||||
|
||||
m_accels.Remove(n);
|
||||
m_accels.RemoveAt(n);
|
||||
}
|
||||
//else: this item doesn't have an accel, nothing to do
|
||||
#endif // wxUSE_ACCEL
|
||||
|
Reference in New Issue
Block a user