mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-03-02 22:14:12 +00:00
Merge pull request #7888 from lioncash/const
UICommon/ResourcePack: Mark ResourcePack's operator== as const
This commit is contained in:
commit
bc9e9caf19
@ -320,9 +320,14 @@ bool ResourcePack::Uninstall(const std::string& path)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ResourcePack::operator==(const ResourcePack& pack)
|
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
|
||||||
|
@ -30,7 +30,8 @@ public:
|
|||||||
bool Install(const std::string& path);
|
bool Install(const std::string& path);
|
||||||
bool Uninstall(const std::string& path);
|
bool Uninstall(const std::string& path);
|
||||||
|
|
||||||
bool operator==(const ResourcePack& pack);
|
bool operator==(const ResourcePack& pack) const;
|
||||||
|
bool operator!=(const ResourcePack& pack) const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool m_valid = true;
|
bool m_valid = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user