From 5139fad429cc70c5c235714e1e9530c28f9b722d Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 18 Sep 2014 14:38:54 +0200 Subject: loplugin: cstylecast Change-Id: I84873c9f84651dc8a1337f37c63020b461314e1b --- comphelper/source/eventattachermgr/eventattachermgr.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'comphelper/source/eventattachermgr') 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(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(aIt.next())->approveFiring( aScriptEvent ); try { Reference< XIdlClass > xListenerType = mpManager->getReflection()-> -- cgit