diff options
| author | Lioncash <mathew1800@gmail.com> | 2019-03-13 15:53:30 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2019-03-13 15:53:30 -0400 |
| commit | 9d096a5e1672266ea58185e361230c8a58f0e8d9 (patch) | |
| tree | 35ede0d9bb3256893de4fbe3c95e24107d01dd72 /Source/Core | |
| parent | 7b354fa7ac9fd1a5430d9e1fbf089f7f30ec8d9f (diff) | |
UICommon/ResourcePack: Mark ResourcePack's operator== as const
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/UICommon/ResourcePack/ResourcePack.cpp | 2 | ||||
| -rw-r--r-- | 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; |
