X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6535dbafaff59e14c9a315a46af63b4bb4846025..d391f6679dc29d7c76e4401aa2cc01ed013651e1:/samples/richedit/kbList.cpp diff --git a/samples/richedit/kbList.cpp b/samples/richedit/kbList.cpp index 37af1ce9da..271dda4dcd 100644 --- a/samples/richedit/kbList.cpp +++ b/samples/richedit/kbList.cpp @@ -6,6 +6,9 @@ * $Id$ * * * * $Log$ + * Revision 1.3 2004/08/06 17:27:18 ABX + * Deleting void is undefined. + * * Revision 1.2 2002/01/16 13:39:50 GT * Added checks for wxUSE_IOSTREAMH to determine which iostream(.h) to use * @@ -59,6 +62,14 @@ # pragma implementation "kbList.h" #endif +#include "wx/wxprec.h" + +#ifdef __BORLANDC__ +# pragma hdrstop +#endif + +#include "wx/wx.h" + #include "kbList.h" @@ -252,7 +263,14 @@ kbList::~kbList() { next = first->next; if(ownsEntries) + { +#if 0 delete first->element; +#else + wxLogError(wxT("Deleting `void*' is undefined.")); + wxLogError(wxT("Entries of kbList should be deleted by destructors of derived classes.")); +#endif + } delete first; first = next; }