From dfe21d378722e90218f2b97cea5c7a449d00b48c Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 20 Mar 2025 08:14:33 +0200 Subject: loplugin:constparam in oox Change-Id: Iadec18cc82fd3fa8fb129698be92fed4ec2fbb1f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183144 Reviewed-by: Noel Grandin Tested-by: Jenkins --- oox/source/shape/WordprocessingCanvasContext.cxx | 2 +- oox/source/shape/WordprocessingCanvasContext.hxx | 2 +- oox/source/shape/WpsContext.cxx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'oox/source/shape') diff --git a/oox/source/shape/WordprocessingCanvasContext.cxx b/oox/source/shape/WordprocessingCanvasContext.cxx index b03886441d6a..5ec1af292869 100644 --- a/oox/source/shape/WordprocessingCanvasContext.cxx +++ b/oox/source/shape/WordprocessingCanvasContext.cxx @@ -32,7 +32,7 @@ using namespace com::sun::star; namespace oox::shape { WordprocessingCanvasContext::WordprocessingCanvasContext(FragmentHandler2 const& rParent, - css::awt::Size& rSize) + const css::awt::Size& rSize) : FragmentHandler2(rParent) , m_bFullWPGSupport(true) { diff --git a/oox/source/shape/WordprocessingCanvasContext.hxx b/oox/source/shape/WordprocessingCanvasContext.hxx index ffc6a84aeed5..105a83cfcb60 100644 --- a/oox/source/shape/WordprocessingCanvasContext.hxx +++ b/oox/source/shape/WordprocessingCanvasContext.hxx @@ -20,7 +20,7 @@ class WordprocessingCanvasContext final : public oox::core::FragmentHandler2 public: // mpShapePtr points to the root of the group. rSize is the size of the background shape. explicit WordprocessingCanvasContext(oox::core::FragmentHandler2 const& rParent, - css::awt::Size& rSize); + const css::awt::Size& rSize); ~WordprocessingCanvasContext() override; oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElementToken, diff --git a/oox/source/shape/WpsContext.cxx b/oox/source/shape/WpsContext.cxx index 56abef55fcc1..c60e3d8971c3 100644 --- a/oox/source/shape/WpsContext.cxx +++ b/oox/source/shape/WpsContext.cxx @@ -503,7 +503,7 @@ void lcl_setTextPropsToShape(const uno::Reference& xShapePr } } -void lcl_applyUsedTextPropsToAllTextRuns(uno::Reference& xText, +void lcl_applyUsedTextPropsToAllTextRuns(const uno::Reference& xText, const std::vector& aTextPropVec) { if (!xText.is()) -- cgit