diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-06-08 16:23:17 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-06-08 16:23:17 +0200 |
commit | 761e0ae0a72f635564fef35852e0c87c755e3bd7 (patch) | |
tree | 9de5b02ba18f4531f931aea76620b8ebd02895d1 /basic/source/sbx/sbxobj.cxx | |
parent | d7b2fe39be4b65af4cebe87a38786e4843e58329 (diff) |
loplugin:cstylecast: deal with remaining pointer casts
Change-Id: I8bce930283301130ec7a2b1eab2a2c8f65c8abf9
Diffstat (limited to 'basic/source/sbx/sbxobj.cxx')
-rw-r--r-- | basic/source/sbx/sbxobj.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/basic/source/sbx/sbxobj.cxx b/basic/source/sbx/sbxobj.cxx index badea10bbdd1..69a552cca1b4 100644 --- a/basic/source/sbx/sbxobj.cxx +++ b/basic/source/sbx/sbxobj.cxx @@ -356,7 +356,7 @@ SbxArray* SbxObject::FindVar( SbxVariable* pVar, sal_uInt16& nArrayIdx ) for( sal_uInt16 i = 0; i < pArray->Count(); i++ ) { SbxVariableRef& rRef = pArray->GetRef( i ); - if( (SbxVariable*) rRef == pOld ) + if( static_cast<SbxVariable*>(rRef) == pOld ) { nArrayIdx = i; break; } @@ -549,7 +549,7 @@ void SbxObject::Remove( SbxVariable* pVar ) { EndListening( pVar_->GetBroadcaster(), true ); } - if( (SbxVariable*) pVar_ == pDfltProp ) + if( static_cast<SbxVariable*>(pVar_) == pDfltProp ) { pDfltProp = NULL; } |