StartTest(_T("Append some items with data objects"));
wxClientData **objects = new wxClientData *[m_items.GetCount()];
- for ( unsigned i = 0; i < m_items.GetCount(); ++i )
+ unsigned i;
+ for ( i = 0; i < m_items.GetCount(); ++i )
objects[i] = CreateClientData(i);
m_container->Append(m_items, objects);
EndTest(expected_result);
StartTest(_T("Append some items with data"));
void **data = new void *[m_items.GetCount()];
- for ( unsigned i = 0; i < m_items.GetCount(); ++i )
+ for ( i = 0; i < m_items.GetCount(); ++i )
data[i] = (void*)i;
m_container->Append(m_items, data);
EndTest(expected_result);
delete[] data;
StartTest(_T("Append some items with data, one by one"));
- for ( unsigned i = 0; i < m_items.GetCount(); ++i )
+ for ( i = 0; i < m_items.GetCount(); ++i )
m_container->Append(m_items[i], (void*)i);
EndTest(expected_result);
StartTest(_T("Append some items with data objects, one by one"));
- for ( unsigned i = 0; i < m_items.GetCount(); ++i )
+ for ( i = 0; i < m_items.GetCount(); ++i )
m_container->Append(m_items[i], CreateClientData(i));
EndTest(expected_result);