Simplify containers iterations in sdext

Desktop / LibreOffice - Arkadiy Illarionov [gmail.com] - 3 December 2018 07:14 EST

Use range-based loop or replace with STL functions

Change-Id: I760c1aaeae9afc99effee6a2645bb77439260ddf Reviewed-on: https://gerrit.libreoffice.org/64435

056845403c38 Simplify containers iterations in sdext
sdext/source/minimizer/configurationaccess.cxx | 10 +-
sdext/source/minimizer/fileopendialog.cxx | 20 ++--
sdext/source/minimizer/graphiccollector.cxx | 59 +++++------
sdext/source/minimizer/impoptimizer.cxx | 64 +++++-------
sdext/source/minimizer/optimizationstats.cxx | 7 +-
sdext/source/minimizer/optimizerdialogcontrols.cxx | 39 +++----
sdext/source/minimizer/pagecollector.cxx | 50 ++-------
sdext/source/pdfimport/odf/odfemitter.cxx | 9 +-
sdext/source/pdfimport/sax/emitcontext.cxx | 6 +-
sdext/source/pdfimport/sax/saxattrlist.cxx | 8 +-
sdext/source/pdfimport/tree/drawtreevisiting.cxx | 23 ++---
sdext/source/pdfimport/tree/genericelements.cxx | 26 ++---
sdext/source/pdfimport/tree/style.cxx | 15 ++-
sdext/source/pdfimport/tree/style.hxx | 12 +--
sdext/source/pdfimport/tree/writertreevisiting.cxx | 97 ++++++++---------
sdext/source/presenter/PresenterAccessibility.cxx | 56 +++-------
sdext/source/presenter/PresenterController.cxx | 40 +++----
sdext/source/presenter/PresenterHelpView.cxx | 59 +++++------
sdext/source/presenter/PresenterPaneContainer.cxx | 70 +++++--------
sdext/source/presenter/PresenterPaneFactory.cxx | 6 +-
sdext/source/presenter/PresenterTextView.cxx | 64 ++++--------
sdext/source/presenter/PresenterTheme.cxx | 44 ++++----
sdext/source/presenter/PresenterTimer.cxx | 23 ++---
sdext/source/presenter/PresenterToolBar.cxx | 115 +++++++++------------
sdext/source/presenter/PresenterViewFactory.cxx | 6 +-
sdext/source/presenter/PresenterWindowManager.cxx | 63 +++++------
26 files changed, 383 insertions(+), 608 deletions(-)

Upstream: cgit.freedesktop.org


  • Share