fix (harmless) Win64-compatibility MSVC warning
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54729 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -263,14 +263,14 @@ void ItemContainerWidgetsPage::OnButtonTestItemContainer(wxCommandEvent&)
|
|||||||
StartTest(_T("Append some items with data"));
|
StartTest(_T("Append some items with data"));
|
||||||
void **data = new void *[m_items.GetCount()];
|
void **data = new void *[m_items.GetCount()];
|
||||||
for ( i = 0; i < m_items.GetCount(); ++i )
|
for ( i = 0; i < m_items.GetCount(); ++i )
|
||||||
data[i] = (void*)i;
|
data[i] = wxUIntToPtr(i);
|
||||||
m_container->Append(m_items, data);
|
m_container->Append(m_items, data);
|
||||||
EndTest(expected_result);
|
EndTest(expected_result);
|
||||||
delete[] data;
|
delete[] data;
|
||||||
|
|
||||||
StartTest(_T("Append some items with data, one by one"));
|
StartTest(_T("Append some items with data, one by one"));
|
||||||
for ( i = 0; i < m_items.GetCount(); ++i )
|
for ( i = 0; i < m_items.GetCount(); ++i )
|
||||||
m_container->Append(m_items[i], (void*)i);
|
m_container->Append(m_items[i], wxUIntToPtr(i));
|
||||||
EndTest(expected_result);
|
EndTest(expected_result);
|
||||||
|
|
||||||
StartTest(_T("Append some items with data objects, one by one"));
|
StartTest(_T("Append some items with data objects, one by one"));
|
||||||
@@ -282,7 +282,7 @@ void ItemContainerWidgetsPage::OnButtonTestItemContainer(wxCommandEvent&)
|
|||||||
{
|
{
|
||||||
StartTest(_T("Insert in reverse order with data, one by one"));
|
StartTest(_T("Insert in reverse order with data, one by one"));
|
||||||
for ( unsigned i = m_items.GetCount(); i; --i )
|
for ( unsigned i = m_items.GetCount(); i; --i )
|
||||||
m_container->Insert(m_items[i - 1], 0, (void*)(i - 1));
|
m_container->Insert(m_items[i - 1], 0, wxUIntToPtr(i - 1));
|
||||||
EndTest(expected_result);
|
EndTest(expected_result);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user