X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6c11b5265004937450f8e08d55b8a1476e1452dd..d36d1be926a11459823f3d2b92d534882592ab24:/samples/richedit/kbList.cpp?ds=sidebyside diff --git a/samples/richedit/kbList.cpp b/samples/richedit/kbList.cpp index a5798fc6cc..8d6d032749 100644 --- a/samples/richedit/kbList.cpp +++ b/samples/richedit/kbList.cpp @@ -6,6 +6,16 @@ * $Id$ * * * * $Log$ + * Revision 1.4 2005/05/31 09:19:38 JS + * Typo correction patch [ 1208110 ] Lots of typo corrections + * Olly Betts + * + * 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. * @@ -21,7 +31,7 @@ * always failed, must mkdir("~/.M") first) * 2) "redesign" of "Folder properties" dialog and bug corrected, small change to * MInputBox (it was too wide) - * 3) bug in ProvFC when it didn't reckognize the books as being in the correct + * 3) bug in ProvFC when it didn't recognize the books as being in the correct * format (=> messages "can't reopen book") corrected * 4) I tried to enhance MDialog_About(), but it didn't really work... oh well, * I've never said I was an artist @@ -56,6 +66,14 @@ # pragma implementation "kbList.h" #endif +#include "wx/wxprec.h" + +#ifdef __BORLANDC__ +# pragma hdrstop +#endif + +#include "wx/wx.h" + #include "kbList.h" @@ -249,7 +267,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 +316,11 @@ kbList::size(void) const // inefficient #ifdef KBLIST_TEST -#include +#if wxUSE_IOSTREAMH + #include +#else + #include +#endif KBLIST_DEFINE(kbListInt,int);