UICommon/ResourcePack: Provide inequality operator to complement equality operator
Provides symmetrical behavior with the equality operator.
This commit is contained in:
parent
9d096a5e16
commit
6045b44203
|
@ -325,4 +325,9 @@ bool ResourcePack::operator==(const ResourcePack& pack) const
|
|||
return pack.GetPath() == m_path;
|
||||
}
|
||||
|
||||
bool ResourcePack::operator!=(const ResourcePack& pack) const
|
||||
{
|
||||
return !operator==(pack);
|
||||
}
|
||||
|
||||
} // namespace ResourcePack
|
||||
|
|
|
@ -31,6 +31,7 @@ public:
|
|||
bool Uninstall(const std::string& path);
|
||||
|
||||
bool operator==(const ResourcePack& pack) const;
|
||||
bool operator!=(const ResourcePack& pack) const;
|
||||
|
||||
private:
|
||||
bool m_valid = true;
|
||||
|
|
Loading…
Reference in New Issue