From 17ee20b161cf5825e25d120c84675d11f7282256 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sat, 30 Dec 2017 14:36:04 +0200 Subject: loplugin:passstuffbyref improved return in emfio,writerfilter Change-Id: I237936d62d0f1b17574dd88b5c9de932dc03238e Reviewed-on: https://gerrit.libreoffice.org/47214 Tested-by: Jenkins Reviewed-by: Noel Grandin --- extensions/source/propctrlr/eventhandler.cxx | 4 ++-- extensions/source/propctrlr/propcontroller.cxx | 2 +- extensions/source/propctrlr/propcontroller.hxx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'extensions') diff --git a/extensions/source/propctrlr/eventhandler.cxx b/extensions/source/propctrlr/eventhandler.cxx index 0cb98a68d822..9cfd5fc1f08f 100644 --- a/extensions/source/propctrlr/eventhandler.cxx +++ b/extensions/source/propctrlr/eventhandler.cxx @@ -337,7 +337,7 @@ namespace pcr virtual ~EventHolder( ) override; private: - ScriptEventDescriptor impl_getDescriptor_throw( const OUString& _rEventName ) const; + ScriptEventDescriptor const & impl_getDescriptor_throw( const OUString& _rEventName ) const; }; @@ -364,7 +364,7 @@ namespace pcr return impl_getDescriptor_throw( _rEventName ); } - ScriptEventDescriptor EventHolder::impl_getDescriptor_throw( const OUString& _rEventName ) const + ScriptEventDescriptor const & EventHolder::impl_getDescriptor_throw( const OUString& _rEventName ) const { EventMap::const_iterator pos = m_aEventNameAccess.find( _rEventName ); if ( pos == m_aEventNameAccess.end() ) diff --git a/extensions/source/propctrlr/propcontroller.cxx b/extensions/source/propctrlr/propcontroller.cxx index f728b315250f..7e6c7419aa6e 100644 --- a/extensions/source/propctrlr/propcontroller.cxx +++ b/extensions/source/propctrlr/propcontroller.cxx @@ -923,7 +923,7 @@ namespace pcr } - OPropertyBrowserController::PropertyHandlerRef OPropertyBrowserController::impl_getHandlerForProperty_throw( const OUString& _rPropertyName ) const + OPropertyBrowserController::PropertyHandlerRef const & OPropertyBrowserController::impl_getHandlerForProperty_throw( const OUString& _rPropertyName ) const { PropertyHandlerRepository::const_iterator handlerPos = m_aPropertyHandlers.find( _rPropertyName ); if ( handlerPos == m_aPropertyHandlers.end() ) diff --git a/extensions/source/propctrlr/propcontroller.hxx b/extensions/source/propctrlr/propcontroller.hxx index 7068ec6dbeea..f2463adeb9f4 100644 --- a/extensions/source/propctrlr/propcontroller.hxx +++ b/extensions/source/propctrlr/propcontroller.hxx @@ -318,7 +318,7 @@ namespace pcr @return the handler which is responsible for the given property */ - PropertyHandlerRef + PropertyHandlerRef const & impl_getHandlerForProperty_throw( const OUString& _rPropertyName ) const; /** determines whether we have a handler for the given property -- cgit