From d60d957a680d9c98823aac05facb652bf619a750 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 13 Apr 2016 11:25:07 +0200 Subject: loplugin:passstuffbyref in oox Change-Id: Iec989e9060c77dd5b010224b37633179cee4f7e9 --- oox/source/shape/LockedCanvasContext.hxx | 2 +- oox/source/shape/WpgContext.hxx | 2 +- oox/source/shape/WpsContext.hxx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'oox/source/shape') diff --git a/oox/source/shape/LockedCanvasContext.hxx b/oox/source/shape/LockedCanvasContext.hxx index a2e430c67938..21dc10f3f804 100644 --- a/oox/source/shape/LockedCanvasContext.hxx +++ b/oox/source/shape/LockedCanvasContext.hxx @@ -27,7 +27,7 @@ public: virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 Element, const ::oox::AttributeList& rAttribs) override; - oox::drawingml::ShapePtr getShape() + const oox::drawingml::ShapePtr& getShape() { return mpShape; } diff --git a/oox/source/shape/WpgContext.hxx b/oox/source/shape/WpgContext.hxx index ed0cebf1e245..a212bef255cd 100644 --- a/oox/source/shape/WpgContext.hxx +++ b/oox/source/shape/WpgContext.hxx @@ -27,7 +27,7 @@ public: virtual oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElementToken, const oox::AttributeList& rAttribs) override; - oox::drawingml::ShapePtr getShape() + const oox::drawingml::ShapePtr& getShape() { return mpShape; } diff --git a/oox/source/shape/WpsContext.hxx b/oox/source/shape/WpsContext.hxx index 90fd3fb9aa21..b7dfb1d95c35 100644 --- a/oox/source/shape/WpsContext.hxx +++ b/oox/source/shape/WpsContext.hxx @@ -27,7 +27,7 @@ public: virtual oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElementToken, const oox::AttributeList& rAttribs) override; - oox::drawingml::ShapePtr getShape() + const oox::drawingml::ShapePtr& getShape() { return mpShape; } -- cgit