Ref T82, allow to sort by severity

This commit is contained in:
Klaus Basan
2017-06-11 21:33:23 +02:00
parent e45ad3b7e9
commit 76e1a06c44
2 changed files with 8 additions and 0 deletions

View File

@@ -120,6 +120,11 @@ namespace BlackMisc
}
}
void CStatusMessageList::sortBySeverity()
{
this->sortBy(&CStatusMessage::getSeverity);
}
void CStatusMessageList::removeWarningsAndBelow()
{
if (this->isEmpty()) { return; }

View File

@@ -88,6 +88,9 @@ namespace BlackMisc
//! And higher (more critical) severity will be clipped to given severity
void clampSeverity(CStatusMessage::StatusSeverity severity);
//! Sort by severity, lowest first
void sortBySeverity();
//! Remove warnings and below
void removeWarningsAndBelow();