MCPcopy Create free account
hub / github.com/MITK/MITK / GetMaxSeverity

Method GetMaxSeverity

Plugins/org.blueberry.core.runtime/src/berryMultiStatus.cpp:20–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18{
19
20IStatus::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
33MultiStatus::MultiStatus(const QString& pluginId, int code,
34 const QList<IStatus::Pointer>& newChildren,

Callers

nothing calls this directly

Calls 2

GetSeverityMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected