Skip to content
Browse files

UICommon/ResourcePack: Mark ResourcePack's operator== as const

  • Loading branch information...
lioncash committed Mar 13, 2019
1 parent 7b354fa commit 9d096a5e1672266ea58185e361230c8a58f0e8d9
@@ -320,7 +320,7 @@ bool ResourcePack::Uninstall(const std::string& path)
return true;

bool ResourcePack::operator==(const ResourcePack& pack)
bool ResourcePack::operator==(const ResourcePack& pack) const
return pack.GetPath() == m_path;
@@ -30,7 +30,7 @@ class ResourcePack
bool Install(const std::string& path);
bool Uninstall(const std::string& path);

bool operator==(const ResourcePack& pack);
bool operator==(const ResourcePack& pack) const;

bool m_valid = true;

0 comments on commit 9d096a5

Please sign in to comment.
You can’t perform that action at this time.