X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/749bfe9a6de1187def2b26c0cbbb249c1548c1ac..cfd1ac216d14febc1278a48d116b1218efe0316b:/samples/checklst/checklst.cpp diff --git a/samples/checklst/checklst.cpp b/samples/checklst/checklst.cpp index 6739220775..4d5eb27c41 100644 --- a/samples/checklst/checklst.cpp +++ b/samples/checklst/checklst.cpp @@ -34,6 +34,10 @@ #include "wx/menuitem.h" #include "wx/checklst.h" +#if !wxUSE_CHECKLISTBOX + #error "This sample can't be built without wxUSE_CHECKLISTBOX" +#endif // wxUSE_CHECKLISTBOX + // Define a new application type class CheckListBoxApp: public wxApp { @@ -48,7 +52,7 @@ public: // ctor & dtor CheckListBoxFrame(wxFrame *frame, const wxChar *title, int x, int y, int w, int h); - virtual ~CheckListBoxFrame(); + virtual ~CheckListBoxFrame(){}; // notifications void OnQuit(wxCommandEvent& event); @@ -243,10 +247,6 @@ void CheckListBoxFrame::CreateCheckListbox(long flags) m_pListBox->Select(3); } -CheckListBoxFrame::~CheckListBoxFrame() -{ -} - void CheckListBoxFrame::OnQuit(wxCommandEvent& WXUNUSED(event)) { Close(true);