diff options
Diffstat (limited to 'forms')
-rw-r--r-- | forms/source/richtext/richtextcontrol.cxx | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/forms/source/richtext/richtextcontrol.cxx b/forms/source/richtext/richtextcontrol.cxx index bc3dbfe6002b..85da65cb0824 100644 --- a/forms/source/richtext/richtextcontrol.cxx +++ b/forms/source/richtext/richtextcontrol.cxx @@ -239,13 +239,10 @@ namespace frm Sequence< Reference< XDispatch > > SAL_CALL ORichTextControl::queryDispatches( const Sequence< DispatchDescriptor >& _rRequests ) { - Sequence< Reference< XDispatch > > aReturn; - Reference< XDispatchProvider > xTypedPeer( getPeer(), UNO_QUERY ); - if ( xTypedPeer.is() ) - { - aReturn = xTypedPeer->queryDispatches( _rRequests ); - } - return aReturn; + Reference<XDispatchProvider> xTypedPeer(getPeer(), UNO_QUERY); + if (xTypedPeer.is()) + return xTypedPeer->queryDispatches(_rRequests); + return Sequence<Reference<XDispatch>>(); } bool ORichTextControl::requiresNewPeer( const OUString& _rPropertyName ) const |