File tree 1 file changed +4
-4
lines changed
OOXML/XlsxFormat/Worksheets
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1205,12 +1205,12 @@ namespace OOX
1205
1205
auto ColumnPart = static_cast <XLS::PtgExtraCol*>(BinFmla.rgcb .getPtgs ().back ().get ());
1206
1206
if (!SharedFormulasRef::sharedRefsLocations)
1207
1207
return ;
1208
- for (auto i = 0 ; i < SharedFormulasRef::sharedRefsLocations-> size (); i++ )
1208
+ for (const auto & location : * SharedFormulasRef::sharedRefsLocations)
1209
1209
{
1210
- if (SharedFormulasRef::sharedRefsLocations-> at (i) .row == rowPart->rowXlsb &&
1211
- SharedFormulasRef::sharedRefsLocations-> at (i) .column == ColumnPart->col )
1210
+ if (location. second .row == rowPart->rowXlsb &&
1211
+ location. second .column == ColumnPart->col )
1212
1212
{
1213
- m_oSi = i ;
1213
+ m_oSi = location. first ;
1214
1214
m_oT = SimpleTypes::Spreadsheet::ECellFormulaType::cellformulatypeShared;
1215
1215
}
1216
1216
}
You can’t perform that action at this time.
0 commit comments