]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/configtool/src/custompropertydialog.cpp
Cleaned up some comments, reorganized some code
[wxWidgets.git] / utils / configtool / src / custompropertydialog.cpp
index 9bf09e750a7a3e28fc7e35fe662d527cbb65081e..4d6103c8a446c63f7dd8cb49e4f9e22c97f27731 100644 (file)
@@ -200,7 +200,7 @@ void ctCustomPropertyDialog::OnUpdatePropertyChoices( wxUpdateUIEvent& event )
  * Event handler for ID_PROPERTY_CHOICE_ADD
  */
 
-void ctCustomPropertyDialog::OnPropertyChoiceAdd( wxCommandEvent& event )
+void ctCustomPropertyDialog::OnPropertyChoiceAdd( wxCommandEvent& WXUNUSED(event) )
 {
     wxChoice* choice = (wxChoice* ) FindWindow(ID_CUSTOMPROPERTYTYPE);
     if ( choice->GetSelection() > -1 && choice->GetStringSelection() == wxT("choice") )
@@ -229,14 +229,14 @@ void ctCustomPropertyDialog::OnUpdatePropertyChoiceAdd( wxUpdateUIEvent& event )
  * Event handler for ID_PROPERTY_CHOICE_REMOVE
  */
 
-void ctCustomPropertyDialog::OnPropertyChoiceRemove( wxCommandEvent& event )
+void ctCustomPropertyDialog::OnPropertyChoiceRemove( wxCommandEvent& WXUNUSED(event) )
 {
-    wxChoice* choice = (wxChoice* ) FindWindow(ID_CUSTOMPROPERTYEDITORTYPE);
+    /* wxChoice* choice = (wxChoice* ) */ FindWindow(ID_CUSTOMPROPERTYEDITORTYPE);
     wxListBox* listBox = (wxListBox* ) FindWindow(ID_PROPERTY_CHOICES);
     if (listBox->GetSelection() > -1)
     {
         listBox->Delete(listBox->GetSelection());
-        m_choices.Remove(listBox->GetSelection());
+        m_choices.RemoveAt(listBox->GetSelection());
     }
 }