Compilation fixes for wxUSE_STL == 1.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27910 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1658,7 +1658,7 @@ void wxDb::Close(void)
|
|||||||
|
|
||||||
#ifdef __WXDEBUG__
|
#ifdef __WXDEBUG__
|
||||||
wxTablesInUse *tiu;
|
wxTablesInUse *tiu;
|
||||||
wxNode *pNode;
|
wxList::compatibility_iterator pNode;
|
||||||
pNode = TablesInUse.GetFirst();
|
pNode = TablesInUse.GetFirst();
|
||||||
wxString s,s2;
|
wxString s,s2;
|
||||||
while (pNode)
|
while (pNode)
|
||||||
|
|||||||
@@ -321,18 +321,17 @@ void wxDbTable::cleanup()
|
|||||||
#ifdef __WXDEBUG__
|
#ifdef __WXDEBUG__
|
||||||
if (tableID)
|
if (tableID)
|
||||||
{
|
{
|
||||||
TablesInUse.DeleteContents(TRUE);
|
|
||||||
bool found = FALSE;
|
bool found = FALSE;
|
||||||
|
|
||||||
wxNode *pNode;
|
wxList::compatibility_iterator pNode;
|
||||||
pNode = TablesInUse.GetFirst();
|
pNode = TablesInUse.GetFirst();
|
||||||
while (pNode && !found)
|
while (pNode && !found)
|
||||||
{
|
{
|
||||||
if (((wxTablesInUse *)pNode->GetData())->tableID == tableID)
|
if (((wxTablesInUse *)pNode->GetData())->tableID == tableID)
|
||||||
{
|
{
|
||||||
found = TRUE;
|
found = TRUE;
|
||||||
if (!TablesInUse.DeleteNode(pNode))
|
delete (wxTablesInUse *)pNode->GetData();
|
||||||
wxLogDebug (s,wxT("Unable to delete node!"));
|
TablesInUse.Erase(pNode);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
pNode = pNode->GetNext();
|
pNode = pNode->GetNext();
|
||||||
|
|||||||
Reference in New Issue
Block a user