summaryrefslogtreecommitdiff
path: root/cppu
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-06-02 11:26:02 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-06-02 11:26:02 +0200
commit75aa1bf8ec66df8ce182e30e36a47a5fad280982 (patch)
treed42dc8060047cdd57bad3217b27fbe547a85475a /cppu
parentab9c10c3fb852660e4028e7ff7b3b87666787827 (diff)
loplugin:cstylecast: deal with those that are (technically) const_cast
Change-Id: Ied61df6c80a05037fc6335c098c9ac2671ad1c4d
Diffstat (limited to 'cppu')
-rw-r--r--cppu/source/typelib/typelib.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/cppu/source/typelib/typelib.cxx b/cppu/source/typelib/typelib.cxx
index c69fd8f0e790..01f467cf3124 100644
--- a/cppu/source/typelib/typelib.cxx
+++ b/cppu/source/typelib/typelib.cxx
@@ -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 );