diff options
| author | Lioncash <mathew1800@gmail.com> | 2019-05-30 02:13:37 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2019-05-30 06:41:57 -0400 |
| commit | f7eff6dab8a7103a19d6fa57772aab4f448a472d (patch) | |
| tree | ccd237f03ddf1f61156bac14df9e3732716ec112 /Source | |
| parent | 954246d10ec3c9b6c84569f217d6728e53529341 (diff) | |
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.
Diffstat (limited to 'Source')
| -rw-r--r-- | Source/Core/VideoCommon/ShaderGenCommon.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Source/Core/VideoCommon/ShaderGenCommon.h b/Source/Core/VideoCommon/ShaderGenCommon.h index 137b0487dd..de6e74e8d3 100644 --- a/Source/Core/VideoCommon/ShaderGenCommon.h +++ b/Source/Core/VideoCommon/ShaderGenCommon.h @@ -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 |
