equal
deleted
inserted
replaced
199 } |
199 } |
200 |
200 |
201 FormulaTreeNode::FormulaTreeNode(const FormulaTreeNode& aOther) |
201 FormulaTreeNode::FormulaTreeNode(const FormulaTreeNode& aOther) |
202 : iSource(aOther.iSource), iStart(aOther.iStart), iLen(aOther.iLen), iType(aOther.iType) |
202 : iSource(aOther.iSource), iStart(aOther.iStart), iLen(aOther.iLen), iType(aOther.iType) |
203 { |
203 { |
204 for (int i=0; i<iSubNodes.size(); i++) |
204 for (unsigned int i=0; i<iSubNodes.size(); i++) |
205 delete iSubNodes[i]; |
205 delete iSubNodes[i]; |
206 iSubNodes.clear(); |
206 iSubNodes.clear(); |
207 for (int j=0; j<aOther.iSubNodes.size(); j++) |
207 for (unsigned int j=0; j<aOther.iSubNodes.size(); j++) |
208 iSubNodes.push_back(new FormulaTreeNode(*aOther.iSubNodes[j])); |
208 iSubNodes.push_back(new FormulaTreeNode(*aOther.iSubNodes[j])); |
209 } |
209 } |
210 |
210 |
211 void FormulaTreeNode::Print(const FormulaTreeNode& aNode) |
211 void FormulaTreeNode::Print(const FormulaTreeNode& aNode) |
212 { |
212 { |