]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/grid.cpp
renamed wxWave to wxSound; compatibility fixes
[wxWidgets.git] / src / generic / grid.cpp
index 753fcf01b729b24696101ed7dd09d944e7aec28e..9ad4536bc821498b577a46ae3f8a150759654db0 100644 (file)
@@ -1398,20 +1398,11 @@ void wxGridCellChoiceEditor::Create(wxWindow* parent,
                                     wxWindowID id,
                                     wxEvtHandler* evtHandler)
 {
-    size_t count = m_choices.GetCount();
-    wxString *choices = new wxString[count];
-    for ( size_t n = 0; n < count; n++ )
-    {
-        choices[n] = m_choices[n];
-    }
-
     m_control = new wxComboBox(parent, id, wxEmptyString,
                                wxDefaultPosition, wxDefaultSize,
-                               count, choices,
+                               m_choices,
                                m_allowOthers ? 0 : wxCB_READONLY);
 
-    delete [] choices;
-
     wxGridCellEditor::Create(parent, id, evtHandler);
 }