diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-08-13 10:53:21 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-08-13 10:53:42 +0100 |
commit | c8218367a0f52206591a5048848fa5292405b6c3 (patch) | |
tree | cb256f90eb1d3b05782e97295f8098cf4be68c14 /tools | |
parent | 24e0e7ca6207a45fc45b67a1355a9d855955a2a8 (diff) |
callcatcher: update list
Change-Id: If9b76e5282c22a479ff709174fbc8ee4d3c337cc
Diffstat (limited to 'tools')
-rw-r--r-- | tools/inc/impcont.hxx | 2 | ||||
-rw-r--r-- | tools/source/memtools/contnr.cxx | 38 |
2 files changed, 0 insertions, 40 deletions
diff --git a/tools/inc/impcont.hxx b/tools/inc/impcont.hxx index 455555bd93b3..87c36530c0e3 100644 --- a/tools/inc/impcont.hxx +++ b/tools/inc/impcont.hxx @@ -60,8 +60,6 @@ public: void** GetObjectPtr( sal_uInt16 nIndex ); void* GetObject( sal_uInt16 nIndex ) const; - void SetSize( sal_uInt16 nNewSize ); - sal_uInt16 GetSize() const { return nCount; } sal_uInt16 Count() const { return nCount; } void SetPrevBlock( CBlock* p ) { pPrev = p; } diff --git a/tools/source/memtools/contnr.cxx b/tools/source/memtools/contnr.cxx index 0b7c0d1479f8..b3232a246bb7 100644 --- a/tools/source/memtools/contnr.cxx +++ b/tools/source/memtools/contnr.cxx @@ -419,44 +419,6 @@ inline void** CBlock::GetObjectPtr( sal_uInt16 nIndex ) return &(pNodes[nIndex]); } -/************************************************************************* -|* -|* CBlock::SetSize() -|* -|* Beschreibung Aendert die Groesse des Blocks -|* -*************************************************************************/ - -void CBlock::SetSize( sal_uInt16 nNewSize ) -{ - DBG_CHKTHIS( CBlock, DbgCheckCBlock ); - DBG_ASSERT( nNewSize, "CBlock::SetSize(): nNewSize == 0" ); - - // Unterscheidet sich die Groesse - if ( nNewSize != nCount ) - { - // Array erweitern - void** pNewNodes = new PVOID[nNewSize]; - - // Alte Tabelle in die Neue kopieren - if ( nNewSize < nCount ) - memcpy( pNewNodes, pNodes, nNewSize*sizeof(PVOID) ); - else - { - memcpy( pNewNodes, pNodes, nCount*sizeof(PVOID) ); - - // Array mit 0 initialisieren - memset( pNewNodes+nCount, 0, (nNewSize-nCount)*sizeof(PVOID) ); - } - - // Altes Array loeschen und neue Werte setzen - nSize = nNewSize; - nCount = nSize; - delete[] pNodes; - pNodes = pNewNodes; - } -} - //------------------------------------------------------------------------ /************************************************************************* |