Optimize a bit fileview.cxx (svtools)

Desktop / LibreOffice - Julien Nabet [yahoo.fr] - 11 January 2018 08:40 EST

by:- using for range loops- using returned iterator- using find_if- using std::distance (with a find_if) to avoid looping for searching a position- using erase-find_if idiom- declaring "const" all the aTab vars- avoiding creating a variable used once- using "++" instead of "+= +1"

Change-Id: I4139a24e43c10151dd5f0baf57a7aef5bd994ec7 Reviewed-on: https://gerrit.libreoffice.org/47195

62c8ed2520c2 Optimize a bit fileview.cxx (svtools)
svtools/source/contnr/fileview.cxx | 146 ++++++++++++++-----------------------
1 file changed, 53 insertions(+), 93 deletions(-)

Upstream: cgit.freedesktop.org

  • Share