diff --git a/include/wx/ctrlsub.h b/include/wx/ctrlsub.h index 38b22f90fc..1db128f7bc 100644 --- a/include/wx/ctrlsub.h +++ b/include/wx/ctrlsub.h @@ -105,6 +105,9 @@ protected: class WXDLLEXPORT wxControlWithItems : public wxControl, public wxItemContainer { public: + wxControlWithItems() { } + virtual ~wxControlWithItems(); + // we have to redefine these functions here to avoid ambiguities in classes // deriving from us which would arise otherwise because both base classses // have the methods with the same names - hopefully, a smart compiler can diff --git a/src/common/ctrlsub.cpp b/src/common/ctrlsub.cpp index aa0714d83f..67e8a80333 100644 --- a/src/common/ctrlsub.cpp +++ b/src/common/ctrlsub.cpp @@ -122,4 +122,9 @@ void *wxItemContainer::GetClientData(int n) const return DoGetItemClientData(n); } +wxControlWithItems::~wxControlWithItems() +{ + // this destructor is required for Darwin +} + #endif // wxUSE_CONTROLS