From a0e136d2cbb3784ddfcbddcfed5d784c8e4c9a64 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 2 Jan 2018 11:33:15 +0200 Subject: loplugin:passstuffbyref improved return in sd,various Change-Id: I4b6ea89ae2072f4389a696ea3c96d8f7a5731e7a Reviewed-on: https://gerrit.libreoffice.org/47246 Tested-by: Jenkins Reviewed-by: Noel Grandin --- scripting/source/dlgprov/dlgevtatt.cxx | 2 +- scripting/source/dlgprov/dlgevtatt.hxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'scripting') diff --git a/scripting/source/dlgprov/dlgevtatt.cxx b/scripting/source/dlgprov/dlgevtatt.cxx index d58c7ec0f4e3..563faeed79e8 100644 --- a/scripting/source/dlgprov/dlgevtatt.cxx +++ b/scripting/source/dlgprov/dlgevtatt.cxx @@ -186,7 +186,7 @@ namespace dlgprov } - Reference< script::XScriptListener > + Reference< script::XScriptListener > const & DialogEventsAttacherImpl::getScriptListenerForKey( const OUString& sKey ) { ListenerHash::iterator it = listenersForTypes.find( sKey ); diff --git a/scripting/source/dlgprov/dlgevtatt.hxx b/scripting/source/dlgprov/dlgevtatt.hxx index b4df1c516684..2c92d3220fef 100644 --- a/scripting/source/dlgprov/dlgevtatt.hxx +++ b/scripting/source/dlgprov/dlgevtatt.hxx @@ -52,7 +52,7 @@ namespace dlgprov css::uno::Reference< css::uno::XComponentContext > m_xContext; css::uno::Reference< css::script::XEventAttacher > m_xEventAttacher; /// @throws css::uno::RuntimeException - css::uno::Reference< css::script::XScriptListener > getScriptListenerForKey( const OUString& sScriptName ); + css::uno::Reference< css::script::XScriptListener > const & getScriptListenerForKey( const OUString& sScriptName ); css::uno::Reference< css::script::XScriptEventsSupplier > getFakeVbaEventsSupplier( const css::uno::Reference< css::awt::XControl>& xControl, OUString const & sCodeName ); void nestedAttachEvents( const css::uno::Sequence< css::uno::Reference< css::uno::XInterface > >& Objects, const css::uno::Any& Helper, OUString& sDialogCodeName ); void attachEventsToControl( const css::uno::Reference< css::awt::XControl>& xControl, const css::uno::Reference< css::script::XScriptEventsSupplier >& events, const css::uno::Any& Helper ); -- cgit