| 309 | } |
| 310 | |
| 311 | CountryTree::Node const * CountryTree::FindFirstLeaf(CountryId const & key) const |
| 312 | { |
| 313 | if (IsEmpty()) |
| 314 | return nullptr; |
| 315 | |
| 316 | NodesBufferT found; |
| 317 | Find(key, found); |
| 318 | |
| 319 | for (auto node : found) |
| 320 | if (node->ChildrenCount() == 0) |
| 321 | return node; |
| 322 | return nullptr; |
| 323 | } |
| 324 | |
| 325 | MwmSubtreeAttrs LoadGroupImpl(size_t depth, json_t * node, CountryId const & parent, StoreInterface & store) |
| 326 | { |
no test coverage detected