diff options
Diffstat (limited to 'sw/source/uibase/uno/unomailmerge.cxx')
-rw-r--r-- | sw/source/uibase/uno/unomailmerge.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sw/source/uibase/uno/unomailmerge.cxx b/sw/source/uibase/uno/unomailmerge.cxx index 8a15448d8598..b3b674f72422 100644 --- a/sw/source/uibase/uno/unomailmerge.cxx +++ b/sw/source/uibase/uno/unomailmerge.cxx @@ -833,9 +833,7 @@ void SwXMailMerge::LaunchMailMergeEvent( const MailMergeEvent &rEvt ) const comphelper::OInterfaceIteratorHelper2 aIt( const_cast<SwXMailMerge *>(this)->m_aMergeListeners ); while (aIt.hasMoreElements()) { - Reference< XMailMergeListener > xRef( aIt.next(), UNO_QUERY ); - if (xRef.is()) - xRef->notifyMailMergeEvent( rEvt ); + static_cast< XMailMergeListener* >( aIt.next() )->notifyMailMergeEvent( rEvt ); } } @@ -848,9 +846,7 @@ void SwXMailMerge::launchEvent( const PropertyChangeEvent &rEvt ) const cppu::OInterfaceIteratorHelper aIt( *pContainer ); while (aIt.hasMoreElements()) { - Reference< XPropertyChangeListener > xRef( aIt.next(), UNO_QUERY ); - if (xRef.is()) - xRef->propertyChange( rEvt ); + static_cast< XPropertyChangeListener* >( aIt.next() )->propertyChange( rEvt ); } } } |