GradleSpecifier: use defaulted == operator

Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
TheKodeToad 2026-01-14 19:11:29 +00:00
parent 2f524c7a80
commit 77ebf65c7d
No known key found for this signature in database
GPG key ID: 5E39D70B4C93C38E

View file

@ -125,20 +125,7 @@ struct GradleSpecifier {
{ {
return other.artifactId() == artifactId() && other.groupId() == groupId() && other.classifier() == classifier(); return other.artifactId() == artifactId() && other.groupId() == groupId() && other.classifier() == classifier();
} }
bool operator==(const GradleSpecifier& other) const bool operator ==(const GradleSpecifier &other) const = default;
{
if (m_groupId != other.m_groupId)
return false;
if (m_artifactId != other.m_artifactId)
return false;
if (m_version != other.m_version)
return false;
if (m_classifier != other.m_classifier)
return false;
if (m_extension != other.m_extension)
return false;
return true;
}
private: private:
QString m_invalidValue; QString m_invalidValue;