mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-29 21:56:58 +00:00
C++20: Synthesize operator!=
From operator==
The inequality operator is automatically generated by the compiler if `operator==` is defined.
This commit is contained in:
parent
b5f7a50874
commit
e8d5fb89e4
36 changed files with 0 additions and 101 deletions
|
@ -307,9 +307,4 @@ bool ResourcePack::operator==(const ResourcePack& pack) const
|
|||
return pack.GetPath() == m_path;
|
||||
}
|
||||
|
||||
bool ResourcePack::operator!=(const ResourcePack& pack) const
|
||||
{
|
||||
return !operator==(pack);
|
||||
}
|
||||
|
||||
} // namespace ResourcePack
|
||||
|
|
|
@ -30,7 +30,6 @@ public:
|
|||
bool Uninstall(const std::string& path);
|
||||
|
||||
bool operator==(const ResourcePack& pack) const;
|
||||
bool operator!=(const ResourcePack& pack) const;
|
||||
|
||||
private:
|
||||
bool m_valid = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue