* @brief Get position of first child item in structured DIFFITEM tree * @param [in] par Position of parent diff item (maybe `nullptr`) * @return Position of first child item (or `nullptr` if no children) */
| 79 | * @return Position of first child item (or `nullptr` if no children) |
| 80 | */ |
| 81 | DIFFITEM *DiffItemList::GetFirstChildDiffPosition(const DIFFITEM *par) const |
| 82 | { |
| 83 | if (par == nullptr) |
| 84 | { |
| 85 | assert(m_pRoot != nullptr); |
| 86 | return m_pRoot->GetFirstChild(); |
| 87 | } |
| 88 | else |
| 89 | return par->GetFirstChild(); |
| 90 | } |
| 91 | |
| 92 | /** |
| 93 | * @brief Get position of next item in structured DIFFITEM tree |