summaryrefslogtreecommitdiff
path: root/sc/source/filter/oox
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2024-01-27 15:42:54 +0600
committerMike Kaganski <mike.kaganski@collabora.com>2024-01-27 12:43:48 +0100
commit0fa827dbb2147d1d3850b2181eb6ab6a02a04500 (patch)
tree721d02c64c26365e605a2348fd1ff744c4dd8d29 /sc/source/filter/oox
parentdb227dc7d032d642983c313ab74c34a301464c2a (diff)
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 <mike.kaganski@collabora.com>
Diffstat (limited to 'sc/source/filter/oox')
-rw-r--r--sc/source/filter/oox/formulabase.cxx4
-rw-r--r--sc/source/filter/oox/workbookhelper.cxx4
2 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/filter/oox/formulabase.cxx b/sc/source/filter/oox/formulabase.cxx
index 7603d0f17833..464d30d9d2d8 100644
--- a/sc/source/filter/oox/formulabase.cxx
+++ b/sc/source/filter/oox/formulabase.cxx
@@ -1249,7 +1249,7 @@ bool OpCodeProviderImpl::fillTokenMap( ApiTokenMap& orTokenMap, OpCodeEntrySeque
orTokenMap.clear();
if( fillEntrySeq( orEntrySeq, rxMapper, nMapGroup ) )
{
- for( const FormulaOpCodeMapEntry& rEntry : std::as_const(orEntrySeq) )
+ for (const FormulaOpCodeMapEntry& rEntry : orEntrySeq)
orTokenMap[ rEntry.Name ] = rEntry.Token;
}
return orEntrySeq.hasElements();
@@ -1261,7 +1261,7 @@ bool OpCodeProviderImpl::fillFuncTokenMaps( ApiTokenMap& orIntFuncTokenMap, ApiT
orExtFuncTokenMap.clear();
if( fillEntrySeq( orEntrySeq, rxMapper, css::sheet::FormulaMapGroup::FUNCTIONS ) )
{
- for( const FormulaOpCodeMapEntry& rEntry : std::as_const(orEntrySeq) )
+ for (const FormulaOpCodeMapEntry& rEntry : orEntrySeq)
((rEntry.Token.OpCode == OPCODE_EXTERNAL) ? orExtFuncTokenMap : orIntFuncTokenMap)[ rEntry.Name ] = rEntry.Token;
}
return orEntrySeq.hasElements();
diff --git a/sc/source/filter/oox/workbookhelper.cxx b/sc/source/filter/oox/workbookhelper.cxx
index 855c7dab40b0..2361122e0bfe 100644
--- a/sc/source/filter/oox/workbookhelper.cxx
+++ b/sc/source/filter/oox/workbookhelper.cxx
@@ -765,7 +765,7 @@ void WorkbookHelper::finalizeWorkbookImport()
OUString sTabName;
Reference< XNameAccess > xSheetsNC;
- for (const auto& rProp : std::as_const(aSeq))
+ for (const auto& rProp : aSeq)
{
OUString sName(rProp.Name);
if (sName == SC_ACTIVETABLE)
@@ -790,7 +790,7 @@ void WorkbookHelper::finalizeWorkbookImport()
if ( !(aAny >>= aProperties) )
return;
- for (const auto& rProp : std::as_const(aProperties))
+ for (const auto& rProp : aProperties)
{
OUString sName(rProp.Name);
if (sName == SC_POSITIONLEFT)