X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6c11b5265004937450f8e08d55b8a1476e1452dd..d79c8ea96fad32c212b51dc6985d61337ea94055:/samples/richedit/kbList.cpp diff --git a/samples/richedit/kbList.cpp b/samples/richedit/kbList.cpp index a5798fc6cc..271dda4dcd 100644 --- a/samples/richedit/kbList.cpp +++ b/samples/richedit/kbList.cpp @@ -6,6 +6,12 @@ * $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 + * * Revision 1.1 1999/06/07 09:57:12 KB * Formerly known as wxLayout. * @@ -56,6 +62,14 @@ # pragma implementation "kbList.h" #endif +#include "wx/wxprec.h" + +#ifdef __BORLANDC__ +# pragma hdrstop +#endif + +#include "wx/wx.h" + #include "kbList.h" @@ -249,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; } @@ -291,7 +312,11 @@ kbList::size(void) const // inefficient #ifdef KBLIST_TEST -#include +#if wxUSE_IOSTREAMH + #include +#else + #include +#endif KBLIST_DEFINE(kbListInt,int);