X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/aa61d3525370a9b9fa8c797d9b7f89d96994db5f..f8ba4cb61a5375fa69a2b7a9daae10b00f34a57f:/src/gtk1/listbox.cpp diff --git a/src/gtk1/listbox.cpp b/src/gtk1/listbox.cpp index 260122e33c..38eee5c8d3 100644 --- a/src/gtk1/listbox.cpp +++ b/src/gtk1/listbox.cpp @@ -13,16 +13,20 @@ #if wxUSE_LISTBOX #include "wx/listbox.h" -#include "wx/dynarray.h" + +#ifndef WX_PRECOMP + #include "wx/dynarray.h" + #include "wx/intl.h" + #include "wx/utils.h" + #include "wx/settings.h" +#endif + #include "wx/arrstr.h" -#include "wx/utils.h" -#include "wx/intl.h" #include "wx/checklst.h" -#include "wx/settings.h" #include "wx/gtk1/private.h" #if wxUSE_TOOLTIPS -#include "wx/tooltip.h" + #include "wx/tooltip.h" #endif #include @@ -589,7 +593,7 @@ void wxListBox::DoInsertItems(const wxArrayString& items, unsigned int pos) InvalidateBestSize(); 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") );