Simplify Sequence iterations in sc

Desktop / LibreOffice - Arkadiy Illarionov [gmail.com] - 9 August 2019 14:58 EDT

Use range-based loops, STL and comphelper functions

Change-Id: I047fb2e6ec9591166339b9748c5013a32185f14b Reviewed-on: https://gerrit.libreoffice.org/76912

fca94779872b Simplify Sequence iterations in sc
sc/qa/unit/helper/qahelper.cxx | 4 +-
sc/source/core/data/documen5.cxx | 10 +-
sc/source/core/data/dpobject.cxx | 10 +-
sc/source/core/data/dpoutput.cxx | 22 ++---
sc/source/core/data/dpresfilter.cxx | 10 +-
sc/source/core/data/dptabsrc.cxx | 24 ++---
sc/source/core/data/tabprotection.cxx | 11 +--
sc/source/core/tool/addincol.cxx | 64 +++++--------
sc/source/core/tool/appoptio.cxx | 4 +-
sc/source/core/tool/charthelper.cxx | 9 +-
sc/source/core/tool/rangeseq.cxx | 18 ++--
sc/source/core/tool/rangeutl.cxx | 4 +-
sc/source/core/tool/unitconv.cxx | 6 +-
sc/source/core/tool/userlist.cxx | 8 +-
sc/source/filter/excel/xechart.cxx | 72 +++++++--------
sc/source/filter/excel/xeescher.cxx | 16 ++--
sc/source/filter/ftools/fapihelper.cxx | 7 +-
sc/source/filter/oox/formulabase.cxx | 12 +--
sc/source/filter/oox/workbookhelper.cxx | 18 ++--
sc/source/filter/xcl97/xcl97esc.cxx | 7 +-
sc/source/filter/xcl97/xcl97rec.cxx | 4 +-
sc/source/filter/xml/XMLCodeNameProvider.cxx | 7 +-
sc/source/filter/xml/XMLExportDatabaseRanges.cxx | 11 +--
sc/source/filter/xml/xmlcvali.cxx | 16 +---
sc/source/filter/xml/xmlimprt.cxx | 69 +++++++-------
sc/source/filter/xml/xmlstyli.cxx | 4 +-
sc/source/ui/Accessibility/AccessibleCell.cxx | 13 +--
sc/source/ui/Accessibility/AccessibleGlobal.cxx | 11 +--
sc/source/ui/cctrl/tbzoomsliderctrl.cxx | 7 +-
sc/source/ui/dbgui/dapidata.cxx | 10 +-
sc/source/ui/dbgui/tpsort.cxx | 4 +-
sc/source/ui/docshell/docsh2.cxx | 7 +-
sc/source/ui/miscdlgs/optsolver.cxx | 16 ++--
sc/source/ui/miscdlgs/solveroptions.cxx | 4 +-
sc/source/ui/miscdlgs/solverutil.cxx | 3 +-
sc/source/ui/unoobj/appluno.cxx | 5 +-
sc/source/ui/unoobj/celllistsource.cxx | 9 +-
sc/source/ui/unoobj/cellsuno.cxx | 85 ++++++-----------
sc/source/ui/unoobj/cellvaluebinding.cxx | 9 +-
sc/source/ui/unoobj/chart2uno.cxx | 41 ++++----
sc/source/ui/unoobj/chartuno.cxx | 31 ++-----
sc/source/ui/unoobj/condformatuno.cxx | 8 +-
sc/source/ui/unoobj/cursuno.cxx | 4 +-
sc/source/ui/unoobj/dapiuno.cxx | 39 ++++----
sc/source/ui/unoobj/datauno.cxx | 18 ++--
sc/source/ui/unoobj/defltuno.cxx | 6 +-
sc/source/ui/unoobj/dispuno.cxx | 10 +-
sc/source/ui/unoobj/docuno.cxx | 66 ++++++-------
sc/source/ui/unoobj/eventuno.cxx | 4 +-
sc/source/ui/unoobj/filtuno.cxx | 5 +-
sc/source/ui/unoobj/fmtuno.cxx | 6 +-
sc/source/ui/unoobj/funcuno.cxx | 7 +-
sc/source/ui/unoobj/shapeuno.cxx | 19 ++--
sc/source/ui/unoobj/styleuno.cxx | 28 ++----
sc/source/ui/unoobj/viewuno.cxx | 5 +-
sc/source/ui/vba/vbachart.cxx | 7 +-
sc/source/ui/vba/vbachartobjects.cxx | 14 +--
sc/source/ui/vba/vbaeventshelper.cxx | 10 +-
sc/source/ui/vba/vbapagebreaks.cxx | 18 +---
sc/source/ui/vba/vbapagesetup.cxx | 7 +-
sc/source/ui/vba/vbarange.cxx | 27 +++---
sc/source/ui/vba/vbasheetobject.cxx | 13 ++-
sc/source/ui/vba/vbaworkbook.cxx | 69 +++++++-------
sc/source/ui/vba/vbaworksheets.cxx | 5 +-
sc/source/ui/vba/vbawsfunction.cxx | 6 +-
sc/source/ui/view/dbfunc3.cxx | 7 +-
sc/source/ui/view/drawvie4.cxx | 14 ++-
sc/source/ui/view/viewdata.cxx | 113 +++++++++++------------
68 files changed, 494 insertions(+), 743 deletions(-)

Upstream: cgit.freedesktop.org


  • Share