From 925feb0f9265d4ed2c43e030a0278cbf0a405cf1 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 29 Aug 2016 16:57:01 +0200 Subject: loplugin:passstuffbyref Change-Id: I0c14b9bca3259b9d24e1d869878872d930f1ff0e --- sw/inc/textboxhelper.hxx | 2 +- sw/source/core/doc/textboxhelper.cxx | 2 +- 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 xShape); + static SwFrameFormat* getOtherTextBoxFormat(css::uno::Reference 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 xShape) +SwFrameFormat* SwTextBoxHelper::getOtherTextBoxFormat(uno::Reference const & xShape) { SwXShape* pShape = dynamic_cast(xShape.get()); if (!pShape) -- cgit