replaced all int/size_t indices in wxControlWithItems API with unsigned int (committing on behalf of ABX)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38319 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-03-23 22:05:23 +00:00
parent 5aa67d6619
commit aa61d35253
112 changed files with 1367 additions and 1414 deletions

View File

@@ -362,8 +362,8 @@ void ComboboxWidgetsPage::CreateCombo()
wxArrayString items;
if ( m_combobox )
{
int count = m_combobox->GetCount();
for ( int n = 0; n < count; n++ )
unsigned int count = m_combobox->GetCount();
for ( unsigned int n = 0; n < count; n++ )
{
items.Add(m_combobox->GetString(n));
}
@@ -377,8 +377,8 @@ void ComboboxWidgetsPage::CreateCombo()
0, NULL,
flags);
size_t count = items.GetCount();
for ( size_t n = 0; n < count; n++ )
unsigned int count = items.GetCount();
for ( unsigned int n = 0; n < count; n++ )
{
m_combobox->Append(items[n]);
}
@@ -415,7 +415,7 @@ void ComboboxWidgetsPage::OnButtonDelete(wxCommandEvent& WXUNUSED(event))
{
unsigned long n;
if ( !m_textDelete->GetValue().ToULong(&n) ||
(n >= (unsigned)m_combobox->GetCount()) )
(n >= m_combobox->GetCount()) )
{
return;
}
@@ -426,7 +426,7 @@ void ComboboxWidgetsPage::OnButtonDelete(wxCommandEvent& WXUNUSED(event))
void ComboboxWidgetsPage::OnButtonDeleteSel(wxCommandEvent& WXUNUSED(event))
{
int sel = m_combobox->GetSelection();
if ( sel != -1 )
if ( sel != wxNOT_FOUND )
{
m_combobox->Delete(sel);
}