VideoCommon/ShaderGenCommon: Simplify operator!= for ShaderUid

This can be implemented as the negation of operator==, placing the
comparison logic for equality and inequality in the same place.
This commit is contained in:
Lioncash 2019-05-30 02:13:37 -04:00
parent 954246d10e
commit f7eff6dab8

View File

@ -72,10 +72,7 @@ public:
return memcmp(&data, &obj.data, data.NumValues() * sizeof(data)) == 0;
}
bool operator!=(const ShaderUid& obj) const
{
return memcmp(&data, &obj.data, data.NumValues() * sizeof(data)) != 0;
}
bool operator!=(const ShaderUid& obj) const { return !operator==(obj); }
// determines the storage order inside STL containers
bool operator<(const ShaderUid& obj) const