X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d7463f75f9c170c29b4965d27dccf535ac32cfde..04633c190f5a6eafe607a5712647aaa131522b1f:/utils/configtool/src/custompropertydialog.cpp?ds=sidebyside diff --git a/utils/configtool/src/custompropertydialog.cpp b/utils/configtool/src/custompropertydialog.cpp index ef631a4474..2c6af9c1b8 100644 --- a/utils/configtool/src/custompropertydialog.cpp +++ b/utils/configtool/src/custompropertydialog.cpp @@ -9,8 +9,8 @@ // Licence: ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ -#pragma implementation custompropertydialog.h +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) +#pragma implementation "custompropertydialog.h" #endif #include @@ -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()); } }