From 0fa827dbb2147d1d3850b2181eb6ab6a02a04500 Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Sat, 27 Jan 2024 15:42:54 +0600 Subject: Drop std::as_const from css::uno::Sequence iterations Obsoleted by commit 2484de6728bd11bb7949003d112f1ece2223c7a1 (Remove non-const Sequence::begin()/end() in internal code, 2021-10-15) and commit fb3c04bd1930eedacd406874e1a285d62bbf27d9 (Drop non-const Sequence::operator[] in internal code, 2021-11-05). Change-Id: Idbafef5d34c0d4771cbbf75b9db9712e504164cd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162640 Tested-by: Jenkins Reviewed-by: Mike Kaganski --- writerfilter/source/dmapper/DomainMapper_Impl.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'writerfilter/source/dmapper/DomainMapper_Impl.cxx') diff --git a/writerfilter/source/dmapper/DomainMapper_Impl.cxx b/writerfilter/source/dmapper/DomainMapper_Impl.cxx index b50fc74c86af..958f93614d78 100644 --- a/writerfilter/source/dmapper/DomainMapper_Impl.cxx +++ b/writerfilter/source/dmapper/DomainMapper_Impl.cxx @@ -180,7 +180,7 @@ static void lcl_handleDropdownField( const uno::Reference< beans::XPropertySet > sal_Int32 nResult = pFFDataHandler->getDropDownResult().toInt32(); if (nResult > 0 && o3tl::make_unsigned(nResult) < sItems.size()) - rxFieldProps->setPropertyValue( "SelectedItem", uno::Any( std::as_const(sItems)[ nResult ] ) ); + rxFieldProps->setPropertyValue("SelectedItem", uno::Any(sItems[nResult])); if ( !pFFDataHandler->getHelpText().isEmpty() ) rxFieldProps->setPropertyValue( "Help", uno::Any( pFFDataHandler->getHelpText() ) ); } @@ -4729,7 +4729,7 @@ void DomainMapper_Impl::PushShapeContext( const uno::Reference< drawing::XShape uno::Sequence aGrabBag; xShapePropertySet->getPropertyValue("FrameInteropGrabBag") >>= aGrabBag; - for (const auto& rProp : std::as_const(aGrabBag)) + for (const auto& rProp : aGrabBag) { if (rProp.Name == "VML-Z-ORDER") { @@ -4774,7 +4774,7 @@ void DomainMapper_Impl::PushShapeContext( const uno::Reference< drawing::XShape uno::Reference xShapePropertySet(xShape, uno::UNO_QUERY); uno::Sequence aGrabBag; xShapePropertySet->getPropertyValue("InteropGrabBag") >>= aGrabBag; - for (const auto& rProp : std::as_const(aGrabBag)) + for (const auto& rProp : aGrabBag) { if (rProp.Name == "VML-Z-ORDER") { @@ -4946,7 +4946,7 @@ bool DomainMapper_Impl::IsSdtEndBefore() { uno::Sequence aCharGrabBag; rCurrentCharProp.Value >>= aCharGrabBag; - for (const auto& rProp : std::as_const(aCharGrabBag)) + for (const auto& rProp : aCharGrabBag) { if(rProp.Name == "SdtEndBefore") { -- cgit v1.2.3