Deleting void is undefined.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28663 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -6,6 +6,9 @@
|
|||||||
* $Id$ *
|
* $Id$ *
|
||||||
* *
|
* *
|
||||||
* $Log$
|
* $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
|
* Revision 1.2 2002/01/16 13:39:50 GT
|
||||||
* Added checks for wxUSE_IOSTREAMH to determine which iostream(.h) to use
|
* Added checks for wxUSE_IOSTREAMH to determine which iostream(.h) to use
|
||||||
*
|
*
|
||||||
@@ -59,6 +62,14 @@
|
|||||||
# pragma implementation "kbList.h"
|
# pragma implementation "kbList.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "wx/wxprec.h"
|
||||||
|
|
||||||
|
#ifdef __BORLANDC__
|
||||||
|
# pragma hdrstop
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include "wx/wx.h"
|
||||||
|
|
||||||
#include "kbList.h"
|
#include "kbList.h"
|
||||||
|
|
||||||
|
|
||||||
@@ -252,7 +263,14 @@ kbList::~kbList()
|
|||||||
{
|
{
|
||||||
next = first->next;
|
next = first->next;
|
||||||
if(ownsEntries)
|
if(ownsEntries)
|
||||||
|
{
|
||||||
|
#if 0
|
||||||
delete first->element;
|
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;
|
delete first;
|
||||||
first = next;
|
first = next;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user