Removed usage of deprecated methods (patch #827023); Slight code cleanup.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24409 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -325,17 +325,17 @@ void wxDbTable::cleanup()
|
|||||||
bool found = FALSE;
|
bool found = FALSE;
|
||||||
|
|
||||||
wxNode *pNode;
|
wxNode *pNode;
|
||||||
pNode = TablesInUse.First();
|
pNode = TablesInUse.GetFirst();
|
||||||
while (pNode && !found)
|
while (pNode && !found)
|
||||||
{
|
{
|
||||||
if (((wxTablesInUse *)pNode->Data())->tableID == tableID)
|
if (((wxTablesInUse *)pNode->GetData())->tableID == tableID)
|
||||||
{
|
{
|
||||||
found = TRUE;
|
found = TRUE;
|
||||||
if (!TablesInUse.DeleteNode(pNode))
|
if (!TablesInUse.DeleteNode(pNode))
|
||||||
wxLogDebug (s,wxT("Unable to delete node!"));
|
wxLogDebug (s,wxT("Unable to delete node!"));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
pNode = pNode->Next();
|
pNode = pNode->GetNext();
|
||||||
}
|
}
|
||||||
if (!found)
|
if (!found)
|
||||||
{
|
{
|
||||||
@@ -1459,8 +1459,7 @@ bool wxDbTable::CreateTable(bool attemptDrop)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ( j && (pDb->Dbms() != dbmsDBASE)
|
if ( j && (pDb->Dbms() != dbmsDBASE)
|
||||||
&& (pDb->Dbms() != dbmsXBASE_SEQUITER)
|
&& (pDb->Dbms() != dbmsXBASE_SEQUITER) ) // Found a keyfield
|
||||||
) // Found a keyfield
|
|
||||||
{
|
{
|
||||||
switch (pDb->Dbms())
|
switch (pDb->Dbms())
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user