Use prefix increment operator for iterators (for consistency), refs #1852, #1064

This was SVN commit r13418.
This commit is contained in:
historic_bruno
2013-05-22 18:41:13 +00:00
parent 3ce14e3f4b
commit d7dcd3b26c
4 changed files with 18 additions and 18 deletions
+5 -5
View File
@@ -192,7 +192,7 @@ void CThreadDebugger::ClearTrapsToRemove()
}
else
itr++;
++itr;
}
}
@@ -224,7 +224,7 @@ void CThreadDebugger::SetAllNewTraps()
{
CScopeLock lock(m->m_Mutex);
std::list<CActiveBreakPoint*>::iterator itr1;
for (itr1 = m->m_ActiveBreakPoints.begin(); itr1 != m->m_ActiveBreakPoints.end(); itr1++)
for (itr1 = m->m_ActiveBreakPoints.begin(); itr1 != m->m_ActiveBreakPoints.end(); ++itr1)
{
if ((*itr1)->m_ActualLine == (*itr).m_UserLine)
trapAlreadySet = true;
@@ -243,7 +243,7 @@ void CThreadDebugger::SetAllNewTraps()
continue;
}
}
itr++;
++itr;
}
m->m_pDebuggingServer->ReleaseBreakPointAccess(breakPointsLockID);
}
@@ -313,7 +313,7 @@ void CThreadDebugger::ReturnActiveBreakPoints(jsbytecode* pBytecode)
m->m_pDebuggingServer->ReleaseBreakPointAccess(breakPointsLockID);
}
else
itr++;
++itr;
}
}
@@ -620,7 +620,7 @@ bool CThreadDebugger::ToggleBreakPoint(std::string filename, uint userLine)
{
CScopeLock lock(m->m_Mutex);
std::list<CActiveBreakPoint*>::iterator itr;
for (itr = m->m_ActiveBreakPoints.begin(); itr != m->m_ActiveBreakPoints.end(); itr++)
for (itr = m->m_ActiveBreakPoints.begin(); itr != m->m_ActiveBreakPoints.end(); ++itr)
{
if ((*itr)->m_UserLine == userLine && (*itr)->m_Filename == filename)
{