diff options
author | sb <sb@openoffice.org> | 2010-03-01 14:43:46 +0100 |
---|---|---|
committer | sb <sb@openoffice.org> | 2010-03-01 14:43:46 +0100 |
commit | 80b39c82606e372f298cdf3c715277b14d3014bd (patch) | |
tree | 2a6a64e63b972ee40de289be419373ed24a91e23 /sal/inc | |
parent | d2a42ecf88e1485003dce580929d20e2799cc6ee (diff) | |
parent | e3e1a6da8047cb36de9a8faf592a69c9a482a5d9 (diff) |
merged in CWS sb119
Diffstat (limited to 'sal/inc')
-rw-r--r-- | sal/inc/osl/diagnose.hxx | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/sal/inc/osl/diagnose.hxx b/sal/inc/osl/diagnose.hxx index 72883d994d4a..e7360e93349e 100644 --- a/sal/inc/osl/diagnose.hxx +++ b/sal/inc/osl/diagnose.hxx @@ -125,19 +125,17 @@ public: VoidPointerSet::const_iterator iPos(m_data.m_addresses.begin()); VoidPointerSet::const_iterator const iEnd(m_data.m_addresses.end()); for ( ; iPos != iEnd; ++iPos ) { - T const* pLeakingObj = static_cast<T const*>(*iPos); - OSL_ASSERT( pLeakingObj != 0 ); - static_cast<void>(pLeakingObj); + OSL_ASSERT( *iPos != 0 ); } } return bRet; } - void registerObject( T const* pObj ) { + void registerObject( void const* pObj ) { osl_detail_ObjectRegistry_registerObject(m_data, pObj); } - void revokeObject( T const* pObj ) { + void revokeObject( void const* pObj ) { osl_detail_ObjectRegistry_revokeObject(m_data, pObj); } @@ -188,12 +186,10 @@ public: protected: DebugBase() { - StaticObjectRegistry::get().registerObject( - static_cast<InheritingClassT const*>(this) ); + StaticObjectRegistry::get().registerObject( this ); } ~DebugBase() { - StaticObjectRegistry::get().revokeObject( - static_cast<InheritingClassT const*>(this) ); + StaticObjectRegistry::get().revokeObject( this ); } private: |