summaryrefslogtreecommitdiff
path: root/framework
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
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')
-rw-r--r--framework/inc/classes/imagewrapper.hxx2
-rw-r--r--framework/inc/xml/xmlnamespaces.hxx2
-rw-r--r--framework/source/fwe/classes/imagewrapper.cxx2
-rw-r--r--framework/source/fwe/xml/xmlnamespaces.cxx2
4 files changed, 4 insertions, 4 deletions
diff --git a/framework/inc/classes/imagewrapper.hxx b/framework/inc/classes/imagewrapper.hxx
index 2c759f5afa64..14b93c1e1e3c 100644
--- a/framework/inc/classes/imagewrapper.hxx
+++ b/framework/inc/classes/imagewrapper.hxx
@@ -43,7 +43,7 @@ class FWE_DLLPUBLIC ImageWrapper :
return m_aImage;
}
- static css::uno::Sequence< sal_Int8 > GetUnoTunnelId();
+ static css::uno::Sequence< sal_Int8 > const & GetUnoTunnelId();
// XBitmap
virtual css::awt::Size SAL_CALL getSize() override;
diff --git a/framework/inc/xml/xmlnamespaces.hxx b/framework/inc/xml/xmlnamespaces.hxx
index 101c3f4e1d34..f8e1369bad8a 100644
--- a/framework/inc/xml/xmlnamespaces.hxx
+++ b/framework/inc/xml/xmlnamespaces.hxx
@@ -47,7 +47,7 @@ class FWE_DLLPUBLIC XMLNamespaces final
typedef ::std::map< OUString, OUString > NamespaceMap;
/// @throws css::xml::sax::SAXException
- OUString getNamespaceValue( const OUString& aNamespace ) const;
+ OUString const & getNamespaceValue( const OUString& aNamespace ) const;
OUString m_aDefaultNamespace;
OUString m_aXMLAttributeNamespace;
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;