| 560 | } |
| 561 | |
| 562 | bool CFavoriteModel::tree::AddChild(tree *child) |
| 563 | { |
| 564 | if (!child) return false; |
| 565 | child->parent = this; |
| 566 | return InsertChild(GetInserIndex(child), child); |
| 567 | } |
| 568 | |
| 569 | bool CFavoriteModel::tree::InsertChild(int index, tree *child) |
| 570 | { |