| 595 | Tree::Tree() = default; |
| 596 | |
| 597 | void Tree::remapManifestPointers() |
| 598 | { |
| 599 | for(auto& subtree : subtrees) |
| 600 | { |
| 601 | for(auto& node : subtree->nodes) |
| 602 | { |
| 603 | const auto* old_manifest = node->config().manifest; |
| 604 | if(old_manifest != nullptr) |
| 605 | { |
| 606 | auto it = manifests.find(old_manifest->registration_ID); |
| 607 | if(it != manifests.end()) |
| 608 | { |
| 609 | node->config().manifest = &(it->second); |
| 610 | } |
| 611 | } |
| 612 | } |
| 613 | } |
| 614 | } |
| 615 | |
| 616 | void Tree::initialize() |
| 617 | { |
no test coverage detected