From 9f958c076a86e80a48fcd7bbca65a834568e94ea Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 20 Apr 2022 13:00:07 +0200 Subject: loplugin:passstuffbyref Change-Id: I336fd329b577b6fa141265d8bc7ce67784bd7306 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133210 Tested-by: Jenkins Reviewed-by: Noel Grandin --- reportdesign/inc/ReportDefinition.hxx | 2 +- reportdesign/source/core/api/ReportDefinition.cxx | 2 +- reportdesign/source/core/api/Section.cxx | 2 +- reportdesign/source/core/inc/Section.hxx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'reportdesign') diff --git a/reportdesign/inc/ReportDefinition.hxx b/reportdesign/inc/ReportDefinition.hxx index 50973000d493..33d7cd2d8dee 100644 --- a/reportdesign/inc/ReportDefinition.hxx +++ b/reportdesign/inc/ReportDefinition.hxx @@ -188,7 +188,7 @@ namespace reportdesign public: //TTTT Needed? Or same as above? - static css::uno::Sequence< sal_Int8 > getUnoTunnelId(); + static const css::uno::Sequence< sal_Int8 > & getUnoTunnelId(); static std::shared_ptr getSdrModel(const css::uno::Reference< css::report::XReportDefinition >& _xReportDefinition); private: diff --git a/reportdesign/source/core/api/ReportDefinition.cxx b/reportdesign/source/core/api/ReportDefinition.cxx index 9954b50c359e..b74ded0d9b32 100644 --- a/reportdesign/source/core/api/ReportDefinition.cxx +++ b/reportdesign/source/core/api/ReportDefinition.cxx @@ -1959,7 +1959,7 @@ uno::Sequence< sal_Int8 > SAL_CALL OReportDefinition::getImplementationId( ) return css::uno::Sequence(); } -uno::Sequence< sal_Int8 > OReportDefinition::getUnoTunnelId() +const uno::Sequence< sal_Int8 > & OReportDefinition::getUnoTunnelId() { static const comphelper::UnoIdInit implId; return implId.getSeq(); diff --git a/reportdesign/source/core/api/Section.cxx b/reportdesign/source/core/api/Section.cxx index 62795c756ab2..d0e40aff411b 100644 --- a/reportdesign/source/core/api/Section.cxx +++ b/reportdesign/source/core/api/Section.cxx @@ -570,7 +570,7 @@ sal_Int64 OSection::getSomething( const uno::Sequence< sal_Int8 > & rId ) return (m_xDrawPage_Tunnel.is()) ? m_xDrawPage_Tunnel->getSomething(rId) : 0; } -uno::Sequence< sal_Int8 > OSection::getUnoTunnelId() +const uno::Sequence< sal_Int8 > & OSection::getUnoTunnelId() { static const comphelper::UnoIdInit implId; return implId.getSeq(); diff --git a/reportdesign/source/core/inc/Section.hxx b/reportdesign/source/core/inc/Section.hxx index b5a18dfdf3e5..7afbf9e91d0f 100644 --- a/reportdesign/source/core/inc/Section.hxx +++ b/reportdesign/source/core/inc/Section.hxx @@ -221,7 +221,7 @@ namespace reportdesign // css::lang::XUnoTunnel virtual sal_Int64 SAL_CALL getSomething( const css::uno::Sequence< sal_Int8 >& aIdentifier ) override; - static css::uno::Sequence< sal_Int8 > getUnoTunnelId(); + static const css::uno::Sequence< sal_Int8 > & getUnoTunnelId(); void notifyElementAdded(const css::uno::Reference< css::drawing::XShape >& xShape); void notifyElementRemoved(const css::uno::Reference< css::drawing::XShape >& xShape); -- cgit