summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-08-29 16:57:01 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-08-29 16:57:01 +0200
commit925feb0f9265d4ed2c43e030a0278cbf0a405cf1 (patch)
tree8df1b0dd1229510c29b6bf37e5dc1a41f65b9048
parenta513130cba97f140574ec2d7b260e5f1000e7264 (diff)
loplugin:passstuffbyref
Change-Id: I0c14b9bca3259b9d24e1d869878872d930f1ff0e
-rw-r--r--sw/inc/textboxhelper.hxx2
-rw-r--r--sw/source/core/doc/textboxhelper.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sw/inc/textboxhelper.hxx b/sw/inc/textboxhelper.hxx
index 32fc2167c72a..3a43e8f0efe2 100644
--- a/sw/inc/textboxhelper.hxx
+++ b/sw/inc/textboxhelper.hxx
@@ -72,7 +72,7 @@ public:
*/
static SwFrameFormat* getOtherTextBoxFormat(const SwFrameFormat* pFormat, sal_uInt16 nType);
/// If we have an associated TextFrame, then return that.
- static SwFrameFormat* getOtherTextBoxFormat(css::uno::Reference<css::drawing::XShape> xShape);
+ static SwFrameFormat* getOtherTextBoxFormat(css::uno::Reference<css::drawing::XShape> const & xShape);
/// Return the textbox rectangle of a draw shape (in twips).
static Rectangle getTextRectangle(SwFrameFormat* pShape, bool bAbsolute = true);
diff --git a/sw/source/core/doc/textboxhelper.cxx b/sw/source/core/doc/textboxhelper.cxx
index 8a561bbee87a..19d30fe3334f 100644
--- a/sw/source/core/doc/textboxhelper.cxx
+++ b/sw/source/core/doc/textboxhelper.cxx
@@ -238,7 +238,7 @@ SwFrameFormat* SwTextBoxHelper::getOtherTextBoxFormat(const SwFrameFormat* pForm
return pFormat->GetOtherTextBoxFormat();
}
-SwFrameFormat* SwTextBoxHelper::getOtherTextBoxFormat(uno::Reference<drawing::XShape> xShape)
+SwFrameFormat* SwTextBoxHelper::getOtherTextBoxFormat(uno::Reference<drawing::XShape> const & xShape)
{
SwXShape* pShape = dynamic_cast<SwXShape*>(xShape.get());
if (!pShape)