summaryrefslogtreecommitdiff
path: root/framework/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-12-26 08:32:51 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-12-26 19:56:02 +0100
commit2a421b26c0100b35d28b86a5d79afa15af9580dd (patch)
tree064240373eeec9600054ebb8493bb0e1fbd8576d /framework/source
parent2bf1cc7372088ec31ac5f0fb60de57feda59d3b7 (diff)
loplugin:passstuffbyref improved return in basic,framework
Change-Id: Ib19836febb59f4e2bb07dc874cfc6baabc653237 Reviewed-on: https://gerrit.libreoffice.org/47065 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'framework/source')
-rw-r--r--framework/source/fwe/classes/imagewrapper.cxx2
-rw-r--r--framework/source/fwe/xml/xmlnamespaces.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/framework/source/fwe/classes/imagewrapper.cxx b/framework/source/fwe/classes/imagewrapper.cxx
index 1d72f61bb0c2..f916d7a4e607 100644
--- a/framework/source/fwe/classes/imagewrapper.cxx
+++ b/framework/source/fwe/classes/imagewrapper.cxx
@@ -46,7 +46,7 @@ ImageWrapper::~ImageWrapper()
{
}
-Sequence< sal_Int8 > ImageWrapper::GetUnoTunnelId()
+Sequence< sal_Int8 > const & ImageWrapper::GetUnoTunnelId()
{
return impl_getStaticIdentifier();
}
diff --git a/framework/source/fwe/xml/xmlnamespaces.cxx b/framework/source/fwe/xml/xmlnamespaces.cxx
index 4b930ad33f20..94a97eaa1f03 100644
--- a/framework/source/fwe/xml/xmlnamespaces.cxx
+++ b/framework/source/fwe/xml/xmlnamespaces.cxx
@@ -143,7 +143,7 @@ OUString XMLNamespaces::applyNSToElementName( const OUString& aName ) const
return aElementName;
}
-OUString XMLNamespaces::getNamespaceValue( const OUString& aNamespace ) const
+OUString const & XMLNamespaces::getNamespaceValue( const OUString& aNamespace ) const
{
if ( aNamespace.isEmpty() )
return m_aDefaultNamespace;