summaryrefslogtreecommitdiffstats
path: root/hwpfilter/source/formula.cxx
diff options
context:
space:
mode:
authorSzabolcs Dezsi <dezsiszabi@hotmail.com>2012-03-02 17:01:52 +0100
committerTor Lillqvist <tml@iki.fi>2012-03-05 10:44:54 +0200
commitdb74590950afc8def36a42abae786be5ebad85d9 (patch)
tree37f42727817cf781f7f1f3d5571bff02128364bd /hwpfilter/source/formula.cxx
parentImprovement to fdo#46565 (diff)
downloadcore-db74590950afc8def36a42abae786be5ebad85d9.tar.gz
core-db74590950afc8def36a42abae786be5ebad85d9.zip
Kill LinkedList in hwpfilter
Diffstat (limited to 'hwpfilter/source/formula.cxx')
-rw-r--r--hwpfilter/source/formula.cxx8
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;
}