aknlayoutcompiler/src/FormulaTree.cpp
changeset 1 b700e12870ca
parent 0 f58d6ec98e88
equal deleted inserted replaced
0:f58d6ec98e88 1:b700e12870ca
   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 	{