| 51 | } |
| 52 | |
| 53 | void Component::applyTo(LaunchProfile* profile) |
| 54 | { |
| 55 | // do not apply disabled components |
| 56 | if(!isEnabled()) |
| 57 | { |
| 58 | return; |
| 59 | } |
| 60 | auto vfile = getVersionFile(); |
| 61 | if(vfile) |
| 62 | { |
| 63 | vfile->applyTo(profile); |
| 64 | } |
| 65 | else |
| 66 | { |
| 67 | profile->applyProblemSeverity(getProblemSeverity()); |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | std::shared_ptr<class VersionFile> Component::getVersionFile() const |
| 72 | { |
no test coverage detected