From 09cd0e363d6c5b0e7b9cebc598030a7e3d397922 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 23 Aug 2019 14:59:48 +0200 Subject: loplugin:returnconstval in oox Change-Id: Id83744fcb90d1bf6e6fe048858f48a4944351494 Reviewed-on: https://gerrit.libreoffice.org/78013 Tested-by: Jenkins Reviewed-by: Noel Grandin --- include/oox/ole/axcontrol.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/oox/ole/axcontrol.hxx') diff --git a/include/oox/ole/axcontrol.hxx b/include/oox/ole/axcontrol.hxx index 968360a5b39b..d1d47459bdb8 100644 --- a/include/oox/ole/axcontrol.hxx +++ b/include/oox/ole/axcontrol.hxx @@ -334,7 +334,7 @@ public: PropertySet const & rPropSet, sal_Int32& nOrientation ); - const css::uno::Reference GetDocModel() const { return mxDocModel; } + const css::uno::Reference & GetDocModel() const { return mxDocModel; } private: css::uno::Reference< css::frame::XModel > mxDocModel; -- cgit