diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-06-08 16:26:23 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-06-08 16:26:23 +0200 |
commit | 801b9823a0f1974517a4021b9519cfda8cda1626 (patch) | |
tree | 79cfe73b6a422d9c0fd5c5243524e2a94e435ac8 /linguistic/source/lngopt.cxx | |
parent | e12fa69f6eba31ffef4c2ed848ee5a91723df094 (diff) |
loplugin:cstylecast: deal with remaining pointer casts
Change-Id: I34315c0e76ee89e456f50776ef3393dc9408e8fd
Diffstat (limited to 'linguistic/source/lngopt.cxx')
-rw-r--r-- | linguistic/source/lngopt.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/linguistic/source/lngopt.cxx b/linguistic/source/lngopt.cxx index b12938a9f128..38327b8eff87 100644 --- a/linguistic/source/lngopt.cxx +++ b/linguistic/source/lngopt.cxx @@ -218,7 +218,7 @@ Reference< XInterface > SAL_CALL LinguProps_CreateInstance( const Reference< XMultiServiceFactory > & /*rSMgr*/ ) throw(Exception) { - Reference< XInterface > xService = (cppu::OWeakObject*)new LinguProps; + Reference< XInterface > xService = static_cast<cppu::OWeakObject*>(new LinguProps); return xService; } @@ -245,7 +245,7 @@ void SAL_CALL LinguProps::setPropertyValue( Any aOld( aConfig.GetProperty( pCur->nWID ) ); if (aOld != rValue && aConfig.SetProperty( pCur->nWID, rValue )) { - PropertyChangeEvent aChgEvt( (XPropertySet *) this, rPropertyName, + PropertyChangeEvent aChgEvt( static_cast<XPropertySet *>(this), rPropertyName, sal_False, pCur->nWID, aOld, rValue ); launchEvent( aChgEvt ); } @@ -322,7 +322,7 @@ void SAL_CALL LinguProps::setFastPropertyValue( sal_Int32 nHandle, const Any& rV Any aOld( aConfig.GetProperty( nHandle ) ); if (aOld != rValue && aConfig.SetProperty( nHandle, rValue )) { - PropertyChangeEvent aChgEvt( (XPropertySet *) this, + PropertyChangeEvent aChgEvt( static_cast<XPropertySet *>(this), LinguOptions::GetName( nHandle ), sal_False, nHandle, aOld, rValue ); launchEvent( aChgEvt ); } @@ -393,7 +393,7 @@ void SAL_CALL // (see AppExitListener for saving) //aOpt.Save(); // save (possible) changes before exiting - EventObject aEvtObj( (XPropertySet *) this ); + EventObject aEvtObj( static_cast<XPropertySet *>(this) ); aEvtListeners.disposeAndClear( aEvtObj ); aPropListeners.disposeAndClear( aEvtObj ); } |