Warning fixes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38330 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -133,7 +133,7 @@ bool wxChoice::Create( wxWindow *parent, wxWindowID id,
|
|||||||
|
|
||||||
GtkWidget *menu = gtk_menu_new();
|
GtkWidget *menu = gtk_menu_new();
|
||||||
|
|
||||||
for (unsigned int i = 0; i < n; i++)
|
for (unsigned int i = 0; i < (unsigned int)n; i++)
|
||||||
{
|
{
|
||||||
GtkAddHelper(menu, i, choices[i]);
|
GtkAddHelper(menu, i, choices[i]);
|
||||||
}
|
}
|
||||||
|
@@ -589,7 +589,7 @@ void wxListBox::DoInsertItems(const wxArrayString& items, unsigned int pos)
|
|||||||
InvalidateBestSize();
|
InvalidateBestSize();
|
||||||
|
|
||||||
GList *children = m_list->children;
|
GList *children = m_list->children;
|
||||||
int length = g_list_length(children);
|
unsigned int length = g_list_length(children);
|
||||||
|
|
||||||
wxCHECK_RET( pos <= length, wxT("invalid index in wxListBox::InsertItems") );
|
wxCHECK_RET( pos <= length, wxT("invalid index in wxListBox::InsertItems") );
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user