diff options
author | Noel Grandin <noel@peralex.com> | 2016-05-12 10:07:50 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-05-13 08:09:03 +0000 |
commit | 96fab0513215cc416e96e1b2089466afd0d2791c (patch) | |
tree | 7c03bd56b0c3744f0560c05ebb2f422155e64543 /xmlhelp/source/treeview/tvread.cxx | |
parent | b3d5da663ff09c72455a8d3bf9be7c00220271bb (diff) |
clang-tidy modernize-loop-convert in writerfilter to xmlsecurity
Change-Id: I334411c6b57c028ffb41b5deb72002f9d54038c3
Reviewed-on: https://gerrit.libreoffice.org/24923
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'xmlhelp/source/treeview/tvread.cxx')
-rw-r--r-- | xmlhelp/source/treeview/tvread.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/xmlhelp/source/treeview/tvread.cxx b/xmlhelp/source/treeview/tvread.cxx index f9074fe91ed4..28dafedf0583 100644 --- a/xmlhelp/source/treeview/tvread.cxx +++ b/xmlhelp/source/treeview/tvread.cxx @@ -56,8 +56,8 @@ namespace treeview { ~TVDom() { - for( size_t i = 0; i < children.size(); ++i ) - delete children[i]; + for(TVDom* p : children) + delete p; } TVDom* newChild() @@ -468,8 +468,9 @@ void TVChildTarget::Check(TVDom* tvDom) { TVDom* p = tvDom->children[tvDom->children.size()-1]; - for(size_t k=0; k<p->children.size(); ++k) - if (!SearchAndInsert(p->children[k], tvDom->children[i])) tvDom->children[i]->newChild(p->children[k]); + for(TVDom* k : p->children) + if (!SearchAndInsert(k, tvDom->children[i])) + tvDom->children[i]->newChild(k); tvDom->children.pop_back(); h = true; |