| 731 | } |
| 732 | |
| 733 | Component * PackProfile::getComponent(const QString &id) |
| 734 | { |
| 735 | auto iter = d->componentIndex.find(id); |
| 736 | if (iter == d->componentIndex.end()) |
| 737 | { |
| 738 | return nullptr; |
| 739 | } |
| 740 | return (*iter).get(); |
| 741 | } |
| 742 | |
| 743 | Component * PackProfile::getComponent(int index) |
| 744 | { |
no test coverage detected