]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/combobox.cpp
more samples makefiles fixes
[wxWidgets.git] / src / univ / combobox.cpp
index 4248176caaa788cb021771d478424cd2a6a929e8..2ee283fb935a8e65fa38e9f754474fabf7d7d669 100644 (file)
@@ -93,7 +93,7 @@ public:
     }
 
 protected:
-    void OnButton(wxCommandEvent& event) { m_combo->ShowPopup(); }
+    void OnButton(wxCommandEvent& WXUNUSED(event)) { m_combo->ShowPopup(); }
 
     virtual wxSize DoGetBestClientSize() const
     {
@@ -290,7 +290,7 @@ wxComboControl::~wxComboControl()
 // ----------------------------------------------------------------------------
 
 void wxComboControl::DoSetSize(int x, int y,
-                               int width, int height,
+                               int width, int WXUNUSED(height),
                                int sizeFlags)
 {
     // combo height is always fixed
@@ -833,7 +833,7 @@ int wxComboBox::DoInsert(const wxString& item, int pos)
     if (pos == GetCount())
         return DoAppend(item);
 
-    GetLBox()->Insert(1, &item, pos);
+    GetLBox()->Insert(item, pos);
     return pos;
 }