| 9 | } |
| 10 | |
| 11 | MetadataTreeNode* MetadataTreeNode::GetChild(const string& name) { |
| 12 | MetadataTreeNode* child = nullptr; |
| 13 | |
| 14 | if (children != nullptr) { |
| 15 | auto itEnd = children->end(); |
| 16 | auto itFound = find_if(children->begin(), itEnd, [&name] (MetadataTreeNode *x) { |
| 17 | return x->name == name; |
| 18 | }); |
| 19 | if (itFound != itEnd) { |
| 20 | child = *itFound; |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | return child; |
| 25 | } |
| 26 |
no test coverage detected