From 9d096a5e1672266ea58185e361230c8a58f0e8d9 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 13 Mar 2019 15:53:30 -0400 Subject: [PATCH] UICommon/ResourcePack: Mark ResourcePack's operator== as const --- Source/Core/UICommon/ResourcePack/ResourcePack.cpp | 2 +- Source/Core/UICommon/ResourcePack/ResourcePack.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/UICommon/ResourcePack/ResourcePack.cpp b/Source/Core/UICommon/ResourcePack/ResourcePack.cpp index 225714c1f4..f80b5e0caf 100644 --- a/Source/Core/UICommon/ResourcePack/ResourcePack.cpp +++ b/Source/Core/UICommon/ResourcePack/ResourcePack.cpp @@ -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; } diff --git a/Source/Core/UICommon/ResourcePack/ResourcePack.h b/Source/Core/UICommon/ResourcePack/ResourcePack.h index 516114118f..9d5e29af60 100644 --- a/Source/Core/UICommon/ResourcePack/ResourcePack.h +++ b/Source/Core/UICommon/ResourcePack/ResourcePack.h @@ -30,7 +30,7 @@ public: bool Install(const std::string& path); bool Uninstall(const std::string& path); - bool operator==(const ResourcePack& pack); + bool operator==(const ResourcePack& pack) const; private: bool m_valid = true;