mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-02 14:19:02 +00:00
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
2 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue