summaryrefslogtreecommitdiff
path: root/automation/source/testtool/objtest.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'automation/source/testtool/objtest.cxx')
-rw-r--r--automation/source/testtool/objtest.cxx12
1 files changed, 8 insertions, 4 deletions
diff --git a/automation/source/testtool/objtest.cxx b/automation/source/testtool/objtest.cxx
index 84dc21a1321a..c45f075fdba3 100644
--- a/automation/source/testtool/objtest.cxx
+++ b/automation/source/testtool/objtest.cxx
@@ -886,7 +886,8 @@ void TestToolObj::ReadNames( String Filename, CNames *&pNames, CNames *&pUIds, B
if ( !pUIds )
return;
pNewDef = new ControlDef("Active",SmartId(0));
- if (! pUIds->C40_PTR_INSERT(ControlItem, (ControlItem*&)pNewDef))
+ const ControlItem *pItem = pNewDef;
+ if (! pUIds->Insert(pItem))
{
ADD_WARNING_LOG2( GEN_RES_STR1c( S_DOUBLE_NAME, "Active" ), Filename, nLineNr );
delete pNewDef;
@@ -993,7 +994,8 @@ void TestToolObj::ReadNames( String Filename, CNames *&pNames, CNames *&pUIds, B
OldTree = (ControlDef*)pNames->GetObject(nElement);
pNewDef = new ControlDef(aLongname,aShortname,OldTree,TRUE);
- if (! pNames->C40_PTR_INSERT(ControlItem, (ControlItem*&)pNewDef))
+ const ControlItem *pItem = pNewDef;
+ if (! pNames->Insert(pItem))
{
ADD_WARNING_LOG2( GEN_RES_STR1( S_DOUBLE_NAME, aLine ), Filename, nLineNr );
delete pNewDef;
@@ -1060,7 +1062,8 @@ void TestToolObj::ReadNames( String Filename, CNames *&pNames, CNames *&pUIds, B
}
}
- if (! pNames->C40_PTR_INSERT(ControlItem, (ControlItem*&)pNewDef))
+ const ControlItem *pItem = pNewDef;
+ if (! pNames->Insert(pItem))
{
ADD_WARNING_LOG2( GEN_RES_STR1( S_DOUBLE_NAME, aLine ), Filename, nLineNr );
delete pNewDef;
@@ -1535,7 +1538,8 @@ BOOL TestToolObj::ReadNamesBin( String Filename, CNames *&pSIds, CNames *&pContr
}
}
- if (! pNames->C40_PTR_INSERT(ControlItem, (ControlItem*&)pNewDef))
+ const ControlItem *pItem = pNewDef;
+ if (! pNames->Insert(pItem))
{
DBG_ERROR(" !!!! ACHTUNG !!!! Fehler beim einf´┐Żgen eines namens!");
delete pNewDef;