Kaydet (Commit) 8a1a8538 authored tarafından Vladimir Glazunov's avatar Vladimir Glazunov

CWS-TOOLING: integrate CWS cmcfixes71

...@@ -279,9 +279,9 @@ SvStream* SimpleCommunicationLinkViaSocket::GetBestCommunicationStream() ...@@ -279,9 +279,9 @@ SvStream* SimpleCommunicationLinkViaSocket::GetBestCommunicationStream()
BOOL SimpleCommunicationLinkViaSocket::DoReceiveDataStream() BOOL SimpleCommunicationLinkViaSocket::DoReceiveDataStream()
{ {
BOOL bWasError = FALSE; BOOL bWasError = FALSE;
char* pBuffer = NULL; void* pBuffer = NULL;
comm_UINT32 nLen; comm_UINT32 nLen;
bWasError = pPacketHandler->ReceiveData( (void* &)pBuffer, nLen ) != C_ERROR_NONE; bWasError = pPacketHandler->ReceiveData( pBuffer, nLen ) != C_ERROR_NONE;
if ( !bWasError ) if ( !bWasError )
{ {
pReceiveStream = GetBestCommunicationStream(); pReceiveStream = GetBestCommunicationStream();
......
...@@ -886,7 +886,8 @@ void TestToolObj::ReadNames( String Filename, CNames *&pNames, CNames *&pUIds, B ...@@ -886,7 +886,8 @@ void TestToolObj::ReadNames( String Filename, CNames *&pNames, CNames *&pUIds, B
if ( !pUIds ) if ( !pUIds )
return; return;
pNewDef = new ControlDef("Active",SmartId(0)); 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 ); ADD_WARNING_LOG2( GEN_RES_STR1c( S_DOUBLE_NAME, "Active" ), Filename, nLineNr );
delete pNewDef; delete pNewDef;
...@@ -993,7 +994,8 @@ void TestToolObj::ReadNames( String Filename, CNames *&pNames, CNames *&pUIds, B ...@@ -993,7 +994,8 @@ void TestToolObj::ReadNames( String Filename, CNames *&pNames, CNames *&pUIds, B
OldTree = (ControlDef*)pNames->GetObject(nElement); OldTree = (ControlDef*)pNames->GetObject(nElement);
pNewDef = new ControlDef(aLongname,aShortname,OldTree,TRUE); 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 ); ADD_WARNING_LOG2( GEN_RES_STR1( S_DOUBLE_NAME, aLine ), Filename, nLineNr );
delete pNewDef; delete pNewDef;
...@@ -1060,7 +1062,8 @@ void TestToolObj::ReadNames( String Filename, CNames *&pNames, CNames *&pUIds, B ...@@ -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 ); ADD_WARNING_LOG2( GEN_RES_STR1( S_DOUBLE_NAME, aLine ), Filename, nLineNr );
delete pNewDef; delete pNewDef;
...@@ -1535,7 +1538,8 @@ BOOL TestToolObj::ReadNamesBin( String Filename, CNames *&pSIds, CNames *&pContr ...@@ -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!"); DBG_ERROR(" !!!! ACHTUNG !!!! Fehler beim einf�gen eines namens!");
delete pNewDef; delete pNewDef;
......
...@@ -139,7 +139,7 @@ DBG_DTOR(ControlItem,0); ...@@ -139,7 +139,7 @@ DBG_DTOR(ControlItem,0);
SV_DECL_PTRARR_SORT_DEL(CNames, ControlItem*, 50, 10) SV_DECL_PTRARR_SORT_DEL(CNames, ControlItem*, 50, 10)
#define MK_SON_ACCESS( ClassName )\ #define MK_SON_ACCESS( ClassName )\
BOOL SonInsert( const ClassName *pNewEntry ) { return pSons->C40_PTR_INSERT( ControlItem, (ControlItem*&)pNewEntry ); }\ BOOL SonInsert( const ClassName *pNewEntry ) { const ControlItem *pItem = pNewEntry; return pSons->Insert( pItem ); }\
BOOL SonSeek_Entry( const ClassName *pSearchEntry, USHORT *nRes = NULL) { return pSons->Seek_Entry( pSearchEntry, nRes ); }\ BOOL SonSeek_Entry( const ClassName *pSearchEntry, USHORT *nRes = NULL) { return pSons->Seek_Entry( pSearchEntry, nRes ); }\
ClassName* SonGetObject( USHORT nNr ) { return (ClassName*)pSons->GetObject( nNr ); } ClassName* SonGetObject( USHORT nNr ) { return (ClassName*)pSons->GetObject( nNr ); }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment