]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/lboxcmn.cpp
reuse Clear() instead of duplicating its code in Close()
[wxWidgets.git] / src / common / lboxcmn.cpp
index 3943d96c4a2aabf4d1bd414388ff9e3e346fb486..02d5c94b8125d3cf1e94f4c0d7c5b5c36d754e18 100644 (file)
@@ -1,5 +1,5 @@
 ///////////////////////////////////////////////////////////////////////////////
-// Name:        common/lboxcmn.cpp
+// Name:        src/common/lboxcmn.cpp
 // Purpose:     wxListBox class methods common to all platforms
 // Author:      Vadim Zeitlin
 // Modified by:
@@ -45,10 +45,10 @@ wxListBoxBase::~wxListBoxBase()
 // adding items
 // ----------------------------------------------------------------------------
 
-void wxListBoxBase::InsertItems(int nItems, const wxString *items, int pos)
+void wxListBoxBase::InsertItems(unsigned int nItems, const wxString *items, unsigned int pos)
 {
     wxArrayString aItems;
-    for ( int n = 0; n < nItems; n++ )
+    for ( unsigned int n = 0; n < nItems; n++ )
     {
         aItems.Add(items[n]);
     }