MCPcopy Create free account
hub / github.com/WinMerge/winmerge / GetFirstChildDiffPosition

Method GetFirstChildDiffPosition

Src/DiffItemList.cpp:81–90  ·  view source on GitHub ↗

* @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) */

Source from the content-addressed store, hash-verified

79 * @return Position of first child item (or `nullptr` if no children)
80 */
81DIFFITEM *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

Callers 12

FindItemFromPathsFunction · 0.80
IsShowableFunction · 0.80
ExpandSubdirsFunction · 0.80
CompareItemsFunction · 0.80
CompareRequestedItemsFunction · 0.80
markChildrenForRescanFunction · 0.80
GroupItemsBySameNameFunction · 0.80
DetectRenamedItemsMethod · 0.80
RedisplayChildrenMethod · 0.80
ExpandSubdirMethod · 0.80
TEST_FFunction · 0.80

Calls 2

assertClass · 0.85
GetFirstChildMethod · 0.80

Tested by 1

TEST_FFunction · 0.64