equal
deleted
inserted
replaced
65 TInt CFsTreeNode::InsertChild( CFsTreeItem* aItem, const TInt aIndex ) |
65 TInt CFsTreeNode::InsertChild( CFsTreeItem* aItem, const TInt aIndex ) |
66 { |
66 { |
67 FUNC_LOG; |
67 FUNC_LOG; |
68 TInt childIndex = 0; |
68 TInt childIndex = 0; |
69 |
69 |
70 if ( aIndex == KFsTreeChildIndexLast ) |
70 if ( aIndex >= iChildren.Count() || aIndex == KFsTreeChildIndexLast ) |
71 { |
71 { |
72 childIndex = iChildren.Append( aItem ); |
72 childIndex = iChildren.Append( aItem ); |
73 } |
73 } |
74 else |
74 else |
75 { |
75 { |