diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2018-02-24 10:45:45 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2018-02-24 11:46:24 +0100 |
commit | 8f2d6e80608b7f8cc931e6d7e7280c043fc92ae8 (patch) | |
tree | c971155c14f681821432be2ca727920dc5ef1b1c /basctl/source/basicide/layout.cxx | |
parent | 556c2eaffcdb541317ed148d58c6c973fa6fd0e6 (diff) |
Modernize a bit accessibility and basctl
by using for range loops
+ compare end iterator with "!=" instead of "<"
Change-Id: I615a8ca417a58fde4976bb6d8d9112dc5d993a88
Reviewed-on: https://gerrit.libreoffice.org/50277
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'basctl/source/basicide/layout.cxx')
-rw-r--r-- | basctl/source/basicide/layout.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/basctl/source/basicide/layout.cxx b/basctl/source/basicide/layout.cxx index ae19f7695d4d..54195c564898 100644 --- a/basctl/source/basicide/layout.cxx +++ b/basctl/source/basicide/layout.cxx @@ -175,10 +175,10 @@ Layout::SplittedSide::SplittedSide (Layout* pParent, Side eSide) : void Layout::SplittedSide::dispose() { aSplitter.disposeAndClear(); - for (auto i = vItems.begin(); i != vItems.end(); ++i) + for (auto & item : vItems) { - i->pSplit.disposeAndClear(); - i->pWin.clear(); + item.pSplit.disposeAndClear(); + item.pWin.clear(); } } |