Kaydet (Commit) 75aa1bf8 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:cstylecast: deal with those that are (technically) const_cast

Change-Id: Ied61df6c80a05037fc6335c098c9ac2671ad1c4d
üst ab9c10c3
......@@ -1423,7 +1423,7 @@ extern "C" void SAL_CALL typelib_typedescription_release(
if( rInit.pWeakMap )
{
MutexGuard aGuard( rInit.getMutex() );
WeakMap_Impl::iterator aIt = rInit.pWeakMap->find( (sal_Unicode*)pTD->pTypeName->buffer );
WeakMap_Impl::iterator aIt = rInit.pWeakMap->find( pTD->pTypeName->buffer );
if( aIt != rInit.pWeakMap->end() && (void *)(*aIt).second == (void *)pTD )
{
// remove only if it contains the same object
......@@ -2183,7 +2183,7 @@ extern "C" void SAL_CALL typelib_typedescriptionreference_release(
if( rInit.pWeakMap )
{
MutexGuard aGuard( rInit.getMutex() );
WeakMap_Impl::iterator aIt = rInit.pWeakMap->find( (sal_Unicode*)pRef->pTypeName->buffer );
WeakMap_Impl::iterator aIt = rInit.pWeakMap->find( pRef->pTypeName->buffer );
if( !(aIt == rInit.pWeakMap->end()) && (*aIt).second == pRef )
{
// remove only if it contains the same object
......@@ -2268,7 +2268,7 @@ extern "C" void SAL_CALL typelib_typedescriptionreference_getByName(
if( rInit.pWeakMap )
{
MutexGuard aGuard( rInit.getMutex() );
WeakMap_Impl::const_iterator aIt = rInit.pWeakMap->find( (sal_Unicode*)pName->buffer );
WeakMap_Impl::const_iterator aIt = rInit.pWeakMap->find( pName->buffer );
if( !(aIt == rInit.pWeakMap->end()) ) // != failed on msc4.2
{
sal_Int32 n = osl_atomic_increment( &(*aIt).second->nRefCount );
......
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