mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 01:54:20 +03:00
GradleSpecifier: use defaulted == operator
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
parent
2f524c7a80
commit
77ebf65c7d
1 changed files with 1 additions and 14 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue