fix VC6 compilation problems due to its for variables scope brokenness (closes #10035)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56068 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -342,8 +342,8 @@ int Server::OnExit()
|
||||
delete it->GetData();
|
||||
}
|
||||
|
||||
for(EList::compatibility_iterator it = m_eventWorkers.GetFirst(); it ; it->GetNext()) {
|
||||
delete it->GetData();
|
||||
for(EList::compatibility_iterator it2 = m_eventWorkers.GetFirst(); it2 ; it2->GetNext()) {
|
||||
delete it2->GetData();
|
||||
}
|
||||
|
||||
m_threadWorkers.Clear();
|
||||
@@ -429,13 +429,13 @@ void Server::OnWorkerEvent(WorkerEvent& pEvent)
|
||||
break;
|
||||
}
|
||||
}
|
||||
for(EList::compatibility_iterator it = m_eventWorkers.GetFirst(); it ; it = it->GetNext())
|
||||
for(EList::compatibility_iterator it2 = m_eventWorkers.GetFirst(); it2 ; it2 = it2->GetNext())
|
||||
{
|
||||
if (it->GetData() == pEvent.m_sender)
|
||||
if (it2->GetData() == pEvent.m_sender)
|
||||
{
|
||||
wxLogVerbose(wxT("Deleting event worker (%d left)"),m_eventWorkers.GetCount());
|
||||
delete it->GetData();
|
||||
m_eventWorkers.DeleteNode(it);
|
||||
delete it2->GetData();
|
||||
m_eventWorkers.DeleteNode(it2);
|
||||
if (!pEvent.m_workerFailed)
|
||||
m_eventWorkersDone++;
|
||||
else
|
||||
|
Reference in New Issue
Block a user