mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 06:35:52 +08:00
Utility functions, status messages and model list
Ref T247 follow up
This commit is contained in:
committed by
Mat Sutcliffe
parent
5c870a8404
commit
fd1f6bcc84
@@ -133,6 +133,12 @@ namespace BlackMisc
|
||||
this->sortBy(&CStatusMessage::getSeverity);
|
||||
}
|
||||
|
||||
void CStatusMessageList::sortBySeverityHighestFirst()
|
||||
{
|
||||
this->sortBy(&CStatusMessage::getSeverity);
|
||||
this->reverse();
|
||||
}
|
||||
|
||||
void CStatusMessageList::removeWarningsAndBelow()
|
||||
{
|
||||
if (this->isEmpty()) { return; }
|
||||
|
||||
Reference in New Issue
Block a user