From acdba3c2eee18ef0c079b7c41cd4165e06c956c7 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 2 Jan 2018 15:10:58 +0200 Subject: loplugin:passstuffbyref more return improvements slightly less restrictive check when calling functions Change-Id: I35e268ac611797b1daa83777cda02288a635aa32 Reviewed-on: https://gerrit.libreoffice.org/47259 Tested-by: Jenkins Reviewed-by: Noel Grandin --- xmloff/source/transform/StyleOASISTContext.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'xmloff') diff --git a/xmloff/source/transform/StyleOASISTContext.cxx b/xmloff/source/transform/StyleOASISTContext.cxx index 21cc404ccd26..151e5367be0a 100644 --- a/xmloff/source/transform/StyleOASISTContext.cxx +++ b/xmloff/source/transform/StyleOASISTContext.cxx @@ -87,9 +87,9 @@ public: static XMLPropType GetPropType( const OUString& rLocalName ); - static OUString MergeUnderline( XMLTokenEnum eUnderline, + static OUString const & MergeUnderline( XMLTokenEnum eUnderline, bool bBold, bool bDouble ); - static OUString MergeLineThrough( XMLTokenEnum eLineThrough, + static OUString const & MergeLineThrough( XMLTokenEnum eLineThrough, bool bBold, bool bDouble, sal_Unicode c ); }; @@ -635,7 +635,7 @@ XMLPropType XMLPropertiesTContext_Impl::GetPropType( const OUString& rLocalName return eProp; } -OUString XMLPropertiesTContext_Impl::MergeUnderline( +OUString const & XMLPropertiesTContext_Impl::MergeUnderline( XMLTokenEnum eUnderline, bool bBold, bool bDouble ) { if( bDouble ) @@ -700,7 +700,7 @@ OUString XMLPropertiesTContext_Impl::MergeUnderline( return GetXMLToken( eUnderline ); } -OUString XMLPropertiesTContext_Impl::MergeLineThrough( +OUString const & XMLPropertiesTContext_Impl::MergeLineThrough( XMLTokenEnum eLineThrough, bool bBold, bool bDouble, sal_Unicode c ) { -- cgit