| 18 | { |
| 19 | |
| 20 | IStatus::Severity MultiStatus::GetMaxSeverity(const QList<IStatus::Pointer>& children) const |
| 21 | { |
| 22 | Severity maxSeverity = this->GetSeverity(); |
| 23 | for (int i = 0; i < children.size(); i++) |
| 24 | { |
| 25 | Q_ASSERT(children[i]); |
| 26 | Severity severity = children[i]->GetSeverity(); |
| 27 | if (severity > maxSeverity) |
| 28 | maxSeverity = severity; |
| 29 | } |
| 30 | return maxSeverity; |
| 31 | } |
| 32 | |
| 33 | MultiStatus::MultiStatus(const QString& pluginId, int code, |
| 34 | const QList<IStatus::Pointer>& newChildren, |
nothing calls this directly
no test coverage detected