[Libreoffice-commits] core.git: sw/inc sw/source
Stephan Bergmann
sbergman at redhat.com
Mon Aug 29 14:57:28 UTC 2016
sw/inc/textboxhelper.hxx | 2 +-
sw/source/core/doc/textboxhelper.cxx | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 925feb0f9265d4ed2c43e030a0278cbf0a405cf1
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Mon Aug 29 16:57:01 2016 +0200
loplugin:passstuffbyref
Change-Id: I0c14b9bca3259b9d24e1d869878872d930f1ff0e
diff --git a/sw/inc/textboxhelper.hxx b/sw/inc/textboxhelper.hxx
index 32fc216..3a43e8f 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 8a561bb..19d30fe 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)
More information about the Libreoffice-commits
mailing list