summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-12-30 14:36:04 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-12-31 16:03:43 +0100
commit17ee20b161cf5825e25d120c84675d11f7282256 (patch)
tree8151eee99d8864a0cdff485a440f93e5607b09b0 /extensions
parentd4d0b1a2b9f11fb7629559e08c345697ba129c04 (diff)
loplugin:passstuffbyref improved return in emfio,writerfilter
Change-Id: I237936d62d0f1b17574dd88b5c9de932dc03238e Reviewed-on: https://gerrit.libreoffice.org/47214 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/propctrlr/eventhandler.cxx4
-rw-r--r--extensions/source/propctrlr/propcontroller.cxx2
-rw-r--r--extensions/source/propctrlr/propcontroller.hxx2
3 files changed, 4 insertions, 4 deletions
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