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:
parent
954246d10e
commit
f7eff6dab8
|
@ -72,10 +72,7 @@ public:
|
||||||
return memcmp(&data, &obj.data, data.NumValues() * sizeof(data)) == 0;
|
return memcmp(&data, &obj.data, data.NumValues() * sizeof(data)) == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool operator!=(const ShaderUid& obj) const
|
bool operator!=(const ShaderUid& obj) const { return !operator==(obj); }
|
||||||
{
|
|
||||||
return memcmp(&data, &obj.data, data.NumValues() * sizeof(data)) != 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
// determines the storage order inside STL containers
|
// determines the storage order inside STL containers
|
||||||
bool operator<(const ShaderUid& obj) const
|
bool operator<(const ShaderUid& obj) const
|
||||||
|
|
Loading…
Reference in New Issue