mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
UICommon/ResourcePack: Provide inequality operator to complement equality operator
Provides symmetrical behavior with the equality operator.
This commit is contained in:
@ -325,4 +325,9 @@ bool ResourcePack::operator==(const ResourcePack& pack) const
|
|||||||
return pack.GetPath() == m_path;
|
return pack.GetPath() == m_path;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool ResourcePack::operator!=(const ResourcePack& pack) const
|
||||||
|
{
|
||||||
|
return !operator==(pack);
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace ResourcePack
|
} // namespace ResourcePack
|
||||||
|
@ -31,6 +31,7 @@ public:
|
|||||||
bool Uninstall(const std::string& path);
|
bool Uninstall(const std::string& path);
|
||||||
|
|
||||||
bool operator==(const ResourcePack& pack) const;
|
bool operator==(const ResourcePack& pack) const;
|
||||||
|
bool operator!=(const ResourcePack& pack) const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool m_valid = true;
|
bool m_valid = true;
|
||||||
|
Reference in New Issue
Block a user