diff options
author | Noel Grandin <noel@peralex.com> | 2014-09-18 14:38:54 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-09-22 12:24:23 +0200 |
commit | 5139fad429cc70c5c235714e1e9530c28f9b722d (patch) | |
tree | 619ca6750576d2a10d7e3d12ff1f431b7bfe4d20 /comphelper/source/eventattachermgr | |
parent | 4e0744b002af73475b5088aec1e6350974ba1673 (diff) |
loplugin: cstylecast
Change-Id: I84873c9f84651dc8a1337f37c63020b461314e1b
Diffstat (limited to 'comphelper/source/eventattachermgr')
-rw-r--r-- | comphelper/source/eventattachermgr/eventattachermgr.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/comphelper/source/eventattachermgr/eventattachermgr.cxx b/comphelper/source/eventattachermgr/eventattachermgr.cxx index 1de52115dfed..21d8c399a211 100644 --- a/comphelper/source/eventattachermgr/eventattachermgr.cxx +++ b/comphelper/source/eventattachermgr/eventattachermgr.cxx @@ -195,7 +195,7 @@ void SAL_CALL AttacherAllListener_Impl::firing(const AllEventObject& Event) // Iterate over all listeners and pass events. OInterfaceIteratorHelper aIt( mpManager->aScriptListeners ); while( aIt.hasMoreElements() ) - ((XScriptListener *)aIt.next())->firing( aScriptEvent ); + static_cast<XScriptListener *>(aIt.next())->firing( aScriptEvent ); } @@ -263,7 +263,7 @@ Any SAL_CALL AttacherAllListener_Impl::approveFiring( const AllEventObject& Even OInterfaceIteratorHelper aIt( mpManager->aScriptListeners ); while( aIt.hasMoreElements() ) { - aRet = ((XScriptListener *)aIt.next())->approveFiring( aScriptEvent ); + aRet = static_cast<XScriptListener *>(aIt.next())->approveFiring( aScriptEvent ); try { Reference< XIdlClass > xListenerType = mpManager->getReflection()-> |