Skip to content
Permalink
Browse files

UICommon/ResourcePack: Provide inequality operator to complement equa…

…lity operator

Provides symmetrical behavior with the equality operator.
  • Loading branch information...
lioncash committed Mar 13, 2019
1 parent 9d096a5 commit 6045b442034d1baa9c88b37b4b271dda4ed240c2
@@ -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 @@ class ResourcePack
bool Uninstall(const std::string& path);

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

private:
bool m_valid = true;

0 comments on commit 6045b44

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