diff options
author | Szabolcs Dezsi <dezsiszabi@hotmail.com> | 2012-03-02 17:01:52 +0100 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2012-03-05 10:44:54 +0200 |
commit | db74590950afc8def36a42abae786be5ebad85d9 (patch) | |
tree | 37f42727817cf781f7f1f3d5571bff02128364bd /hwpfilter/source/formula.cxx | |
parent | Improvement to fdo#46565 (diff) | |
download | core-db74590950afc8def36a42abae786be5ebad85d9.tar.gz core-db74590950afc8def36a42abae786be5ebad85d9.zip |
Kill LinkedList in hwpfilter
Diffstat (limited to 'hwpfilter/source/formula.cxx')
-rw-r--r-- | hwpfilter/source/formula.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/hwpfilter/source/formula.cxx b/hwpfilter/source/formula.cxx index d2a73ac72d07..ec44f7d0ad74 100644 --- a/hwpfilter/source/formula.cxx +++ b/hwpfilter/source/formula.cxx @@ -33,8 +33,9 @@ #include "mapping.h" #include "hwpeq.h" #include <iostream> +#include <list> -extern LinkedList<Node> nodelist; +extern std::list<Node*> nodelist; #ifndef DEBUG @@ -645,9 +646,10 @@ int Formula::parse() makeMathML( res ); } Node *tmpNode; - int count = nodelist.count(); + int count = nodelist.size(); for( int i = 0 ; i < count ; i++ ){ - tmpNode = nodelist.remove(0); + tmpNode = nodelist.front(); + nodelist.pop_front(); delete tmpNode; } |