From a94c1371cfa2051b9bbb30166217ccedfa274f58 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 25 Mar 2025 09:53:12 +0200 Subject: [PATCH] loplugin:constparam in xmloff Change-Id: I24c536279c5b02b32d564893793fa15672c6f73c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183288 Tested-by: Jenkins Reviewed-by: Noel Grandin --- include/xmloff/txtimp.hxx | 2 +- xmloff/inc/XMLThemeContext.hxx | 2 +- xmloff/source/style/XMLThemeContext.cxx | 2 +- xmloff/source/text/txtimp.cxx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/xmloff/txtimp.hxx b/include/xmloff/txtimp.hxx index 061b2e3b34ba..ea6515a952d9 100644 --- a/include/xmloff/txtimp.hxx +++ b/include/xmloff/txtimp.hxx @@ -168,7 +168,7 @@ public: // Add parameter (#i73509#) // Add parameter in order to suppress the handling of the list attributes (#i80724#) OUString SetStyleAndAttrs( - SvXMLImport & rImport, + const SvXMLImport & rImport, const css::uno::Reference< css::text::XTextCursor >& rCursor, const OUString& rStyleName, bool bPara, diff --git a/xmloff/inc/XMLThemeContext.hxx b/xmloff/inc/XMLThemeContext.hxx index 7b24671eb3ff..c699673064a1 100644 --- a/xmloff/inc/XMLThemeContext.hxx +++ b/xmloff/inc/XMLThemeContext.hxx @@ -61,7 +61,7 @@ class XMLColorContext : public SvXMLImportContext public: XMLColorContext(SvXMLImport& rImport, css::uno::Reference const& xAttrList, - std::shared_ptr& rpColorSet); + const std::shared_ptr& rpColorSet); }; /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/xmloff/source/style/XMLThemeContext.cxx b/xmloff/source/style/XMLThemeContext.cxx index 971c2eaddeb0..5d0f516faafb 100644 --- a/xmloff/source/style/XMLThemeContext.cxx +++ b/xmloff/source/style/XMLThemeContext.cxx @@ -107,7 +107,7 @@ uno::Reference XMLColorContext::XMLColorContext(SvXMLImport& rImport, const uno::Reference& xAttrList, - std::shared_ptr& rpColorSet) + const std::shared_ptr& rpColorSet) : SvXMLImportContext(rImport) { OUString aName; diff --git a/xmloff/source/text/txtimp.cxx b/xmloff/source/text/txtimp.cxx index 33fa6ab0ae0f..43dade94fcca 100644 --- a/xmloff/source/text/txtimp.cxx +++ b/xmloff/source/text/txtimp.cxx @@ -1003,7 +1003,7 @@ static bool lcl_HasListStyle( const OUString& sStyleName, } OUString XMLTextImportHelper::SetStyleAndAttrs( - SvXMLImport & rImport, + const SvXMLImport & rImport, const Reference < XTextCursor >& rCursor, const OUString& rStyleName, bool bPara,