| 629 | } |
| 630 | |
| 631 | uint countFreeItems(int item) const |
| 632 | { |
| 633 | if (item == -1) |
| 634 | return 0; |
| 635 | const Data& current(m_items[item]); |
| 636 | |
| 637 | return 1 + countFreeItems(ItemHandler::leftChild(current)) + countFreeItems(ItemHandler::rightChild(current)); |
| 638 | } |
| 639 | |
| 640 | int leftMostChild(int pos) const |
| 641 | { |