From 4c909d1466bf940f653984b61772cf19c320439d Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 9 Aug 2022 15:22:23 +0200 Subject: loplugin:passstuffbyref Change-Id: Ib2b2650da7abc9260897f9b5aad619a0ea6ae941 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138052 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sw/inc/doc.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sw/inc/doc.hxx') diff --git a/sw/inc/doc.hxx b/sw/inc/doc.hxx index 0606ac4c33d1..05afd162cdd1 100644 --- a/sw/inc/doc.hxx +++ b/sw/inc/doc.hxx @@ -1624,7 +1624,7 @@ public: void SetDefaultPageMode(bool bSquaredPageMode); bool IsSquaredPageMode() const; - css::uno::Reference< ooo::vba::word::XFind > getVbaFind() const { return mxVbaFind; } + const css::uno::Reference< ooo::vba::word::XFind >& getVbaFind() const { return mxVbaFind; } void setVbaFind( const css::uno::Reference< ooo::vba::word::XFind > &xFind) { mxVbaFind = xFind; } css::uno::Reference< css::script::vba::XVBAEventProcessor > const & GetVbaEventProcessor(); void SetVBATemplateToProjectCache( css::uno::Reference< css::container::XNameContainer > const & xCache ) { m_xTemplateToProjectCache = xCache; }; -- cgit