From 581efdec36787dc5e378e54d13e7328fddcf3a50 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 1 Oct 2021 13:01:58 +0200 Subject: loplugin:constmethod Change-Id: I3ed657c5c5e6840e38e3c8505505b4b372125df0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122910 Tested-by: Jenkins Reviewed-by: Noel Grandin --- xmloff/source/core/xmluconv.cxx | 6 +++--- xmloff/source/style/xmlnumfi.cxx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'xmloff/source') diff --git a/xmloff/source/core/xmluconv.cxx b/xmloff/source/core/xmluconv.cxx index 0791532897f0..e1fe1796488c 100644 --- a/xmloff/source/core/xmluconv.cxx +++ b/xmloff/source/core/xmluconv.cxx @@ -369,14 +369,14 @@ void SvXMLUnitConverter::convertDateTime(OUStringBuffer& rBuffer, /** convert ISO Date Time String to double */ bool SvXMLUnitConverter::convertDateTime(double& fDateTime, - std::u16string_view rString) + std::u16string_view rString) const { return convertDateTime(fDateTime, rString, m_pImpl->m_aNullDate); } /** convert ISO Date Time String to double */ bool SvXMLUnitConverter::convertDateTime(double& fDateTime, - std::string_view rString) + std::string_view rString) const { return convertDateTime(fDateTime, rString, m_pImpl->m_aNullDate); } @@ -672,7 +672,7 @@ void SvXMLUnitConverter::convertB3DVector( OUStringBuffer &rBuffer, const ::base /** convert string to Position3D */ bool SvXMLUnitConverter::convertPosition3D( drawing::Position3D& rPosition, - std::string_view rValue ) + std::string_view rValue ) const { OUString aContentX,aContentY,aContentZ; if ( !lcl_getPositions(rValue,aContentX,aContentY,aContentZ) ) diff --git a/xmloff/source/style/xmlnumfi.cxx b/xmloff/source/style/xmlnumfi.cxx index 4563efa9173d..39d6c2763c6a 100644 --- a/xmloff/source/style/xmlnumfi.cxx +++ b/xmloff/source/style/xmlnumfi.cxx @@ -2210,7 +2210,7 @@ SvXMLStyleContext* SvXMLNumFmtHelper::CreateChildContext( SvXMLImport& rImport, pData.get(), nStyleToken, xAttrList, rStyles ); } -LanguageType SvXMLNumFmtHelper::GetLanguageForKey(sal_Int32 nKey) +LanguageType SvXMLNumFmtHelper::GetLanguageForKey(sal_Int32 nKey) const { if (pData->GetNumberFormatter()) { -- cgit