diff options
author | Michael Stahl <mstahl@redhat.com> | 2012-08-08 20:28:21 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-08-08 20:28:21 +0200 |
commit | b3c68592d40cf969af545b4e7c51904b9fdbd897 (patch) | |
tree | 1b415a10870786eedb9f36fed0b13f7aa25c0b6c | |
parent | make binfilter build again (diff) | |
download | binfilter-b3c68592d40cf969af545b4e7c51904b9fdbd897.tar.gz binfilter-b3c68592d40cf969af545b4e7c51904b9fdbd897.zip |
Revert "callcatcher: strip Container down"
This reverts commit baa2838ed4a0d1a9dd4b2ff88e5e033a37bf31cd.
Actually used binfilter, where it currently still uses tools/contnr.hxx
-rw-r--r-- | binfilter/bf_svtools/source/memtools/tl_contnr.cxx | 26 | ||||
-rw-r--r-- | binfilter/inc/bf_tools/contnr.hxx | 2 |
2 files changed, 28 insertions, 0 deletions
diff --git a/binfilter/bf_svtools/source/memtools/tl_contnr.cxx b/binfilter/bf_svtools/source/memtools/tl_contnr.cxx index 9e7e44139..b86680c68 100644 --- a/binfilter/bf_svtools/source/memtools/tl_contnr.cxx +++ b/binfilter/bf_svtools/source/memtools/tl_contnr.cxx @@ -779,6 +779,17 @@ void Container::ImpInsert( void* p, CBlock* pBlock, sal_uInt16 nIndex ) |* *************************************************************************/ +void Container::Insert( void* p ) +{ + ImpInsert( p, pCurBlock, nCurIndex ); +} + +/************************************************************************* +|* +|* Container::Insert() +|* +*************************************************************************/ + void Container::Insert( void* p, sal_uIntPtr nIndex ) { if ( nCount <= nIndex ) @@ -883,6 +894,21 @@ void* Container::ImpRemove( CBlock* pBlock, sal_uInt16 nIndex ) |* *************************************************************************/ +void* Container::Remove() +{ + // Wenn kein Item vorhanden ist, NULL zurueckgeben + if ( !nCount ) + return NULL; + else + return ImpRemove( pCurBlock, nCurIndex ); +} + +/************************************************************************* +|* +|* Container::Remove() +|* +*************************************************************************/ + void* Container::Remove( sal_uIntPtr nIndex ) { // Ist Index nicht innerhalb des Containers, dann NULL zurueckgeben diff --git a/binfilter/inc/bf_tools/contnr.hxx b/binfilter/inc/bf_tools/contnr.hxx index 5e0da5549..eda287dcf 100644 --- a/binfilter/inc/bf_tools/contnr.hxx +++ b/binfilter/inc/bf_tools/contnr.hxx @@ -70,8 +70,10 @@ public: Container( const Container& rContainer ); ~Container(); + void Insert( void* p ); void Insert( void* p, sal_uIntPtr nIndex ); + void* Remove(); void* Remove( sal_uIntPtr nIndex ); void* Remove( void* p ) { return Remove( GetPos( p ) ); } |