vector::erase needs a non-const iterator.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7243 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Soren Jorvang 2011-02-25 12:27:38 +00:00
parent 832df18c0f
commit 7c959d9655

View File

@ -88,7 +88,7 @@ void BreakPoints::Add(u32 em_address, bool temp)
void BreakPoints::Remove(u32 _iAddress) void BreakPoints::Remove(u32 _iAddress)
{ {
for (TBreakPoints::const_iterator i = m_BreakPoints.begin(); i != m_BreakPoints.end(); ++i) for (TBreakPoints::iterator i = m_BreakPoints.begin(); i != m_BreakPoints.end(); ++i)
{ {
if (i->iAddress == _iAddress) if (i->iAddress == _iAddress)
{ {
@ -145,7 +145,7 @@ void MemChecks::Add(const TMemCheck& _rMemoryCheck)
void MemChecks::Remove(u32 _Address) void MemChecks::Remove(u32 _Address)
{ {
for (TMemChecks::const_iterator i = m_MemChecks.begin(); i != m_MemChecks.end(); ++i) for (TMemChecks::iterator i = m_MemChecks.begin(); i != m_MemChecks.end(); ++i)
{ {
if (i->StartAddress == _Address) if (i->StartAddress == _Address)
{ {