UICommon/ResourcePack: Mark ResourcePack's operator== as const
This commit is contained in:
parent
7b354fa7ac
commit
9d096a5e16
|
@ -320,7 +320,7 @@ 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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,7 +30,7 @@ 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;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool m_valid = true;
|
bool m_valid = true;
|
||||||
|
|
Loading…
Reference in New Issue