Lv2Manager: Print issues uniq-ed

This commit is contained in:
Johannes Lorenz
2020-11-21 04:08:21 +01:00
committed by Johannes Lorenz
parent f7128700b4
commit 7a85b4d547
7 changed files with 39 additions and 16 deletions

View File

@@ -67,6 +67,24 @@ const char *PluginIssue::msgFor(const PluginIssueType &it)
bool PluginIssue::operator==(const PluginIssue &other) const
{
return (m_issueType == other.m_issueType) && (m_info == other.m_info);
}
bool PluginIssue::operator<(const PluginIssue &other) const
{
return (m_issueType != other.m_issueType)
? m_issueType < other.m_issueType
: m_info < other.m_info;
}
QDebug operator<<(QDebug stream, const PluginIssue &iss)
{
stream << PluginIssue::msgFor(iss.m_issueType);