Commit 2f956bcc authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use operator==

parent 3dac516e
Pipeline #93160 passed with stage
in 41 minutes and 11 seconds
......@@ -53,3 +53,8 @@ QDebug operator<<(QDebug d, const MessageViewer::ScamDetectionInfo &t)
d << "DomainOrName " << t.domainOrEmail();
return d;
}
bool ScamDetectionInfo::operator==(const ScamDetectionInfo &other) const
{
return domainOrEmail() == other.domainOrEmail() && enabled() == other.enabled() && scamChecks() == other.scamChecks();
}
......@@ -38,6 +38,8 @@ public:
Q_REQUIRED_RESULT ScamDetectionInfo::ScamDetectionFields scamChecks() const;
Q_REQUIRED_RESULT bool operator==(const ScamDetectionInfo &other) const;
private:
QString mDomainOrEmail;
bool mEnabled = false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment