]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/richedit/kbList.cpp
wxURI. Move Convert/to/fromURI into uri.cpp so that it is compiled in base. Regener...
[wxWidgets.git] / samples / richedit / kbList.cpp
index a5798fc6cca0d9549bcddfea8474deaf5509517f..271dda4dcd3102dab2a600bcf8ebb5db52017c98 100644 (file)
@@ -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.
  *
 #   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   <iostream.h>
+#if wxUSE_IOSTREAMH
+    #include <iostream.h>
+#else
+    #include <iostream>
+#endif
 
 KBLIST_DEFINE(kbListInt,int);