Note: these functions do not lock the list, because it is already locked at the time they're called
| 144 | |
| 145 | // Note: these functions do not lock the list, because it is already locked at the time they're called |
| 146 | StatTreeItemIterator CStatTreeItemBase::GetFirstVisibleChild(uint32_t max_children) |
| 147 | { |
| 148 | StatTreeItemIterator it = m_children.begin(); |
| 149 | m_visible_counter = --max_children; |
| 150 | while (it != m_children.end() && !(*it)->IsVisible()) ++it; |
| 151 | return it; |
| 152 | } |
| 153 | |
| 154 | void CStatTreeItemBase::GetNextVisibleChild(StatTreeItemIterator& it) |
| 155 | { |