// Licence:
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
-#pragma implementation custompropertydialog.h
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
+#pragma implementation "custompropertydialog.h"
#endif
#include <wx/wx.h>
* 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") )
* 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());
}
}