diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2017-10-08 20:35:23 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2017-10-09 23:06:05 +0200 |
commit | adb946f9845dff9f5a53010b38032247b30475c1 (patch) | |
tree | a45c157f96ff74176762cc15cf63c898579e433e /hwpfilter/source/formula.cxx | |
parent | Replace lists by vectors in controlmodelcontainerbase (toolkit) (diff) | |
download | core-adb946f9845dff9f5a53010b38032247b30475c1.tar.gz core-adb946f9845dff9f5a53010b38032247b30475c1.zip |
Replace list by vector for nodelist var (hwpfilter)
Change-Id: I693d01f63b8bd8b2c78bfd98e1f9310c965f65b2
Reviewed-on: https://gerrit.libreoffice.org/43262
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'hwpfilter/source/formula.cxx')
-rw-r--r-- | hwpfilter/source/formula.cxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/hwpfilter/source/formula.cxx b/hwpfilter/source/formula.cxx index c3d3b9ce4f2b..5ab06f91dd9b 100644 --- a/hwpfilter/source/formula.cxx +++ b/hwpfilter/source/formula.cxx @@ -613,12 +613,9 @@ void Formula::parse() if( res ){ makeMathML( res ); } - int count = nodelist.size(); - for( i = 0 ; i < count ; i++ ){ - const Node *tmpNode = nodelist.front(); - nodelist.pop_front(); - delete tmpNode; - } + for (const auto &node : nodelist) + delete node; + nodelist.clear(); } void Formula::trim() |