Skip to content

Commit 26e57fc

Browse files
committed
Add missing operator!= overloads for classes that overload operator==
1 parent 3bafdae commit 26e57fc

File tree

4 files changed

+6
-0
lines changed

4 files changed

+6
-0
lines changed

core/Math/hsMatrix44.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ struct HSPLASMA_EXPORT hsMatrix44
4545
float operator()(int y, int x) const { return data[y+(x*4)]; }
4646
float& operator()(int y, int x) { return data[y+(x*4)]; }
4747
bool operator==(const hsMatrix44& other) const;
48+
bool operator!=(const hsMatrix44& other) const { return !operator==(other); }
4849
const float* glMatrix() const { return data; }
4950

5051
hsMatrix44 operator*(const hsMatrix44& right) const;

core/PRP/KeyedObject/plKey.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ class HSPLASMA_EXPORT plKeyData
8383
*/
8484
bool operator==(const plKeyData& other) const { return (fUoid == other.fUoid); }
8585

86+
bool operator!=(const plKeyData& other) const { return !operator==(other); }
87+
8688
/**
8789
* Read a key directly from the key index of a PRP file. This will
8890
* include the file offset and size where the hsKeyedObject is stored.

core/Util/hsBitVector.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ class HSPLASMA_EXPORT hsBitVector
6969
/** Comparison operator */
7070
bool operator==(bool value) const;
7171

72+
bool operator!=(bool value) const { return !operator==(value); }
73+
7274
/** Assignment operator -- modifies the hsBitVector */
7375
Bit& operator=(bool value);
7476
};

net/auth/pnVaultNode.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ struct HSPLASMANET_EXPORT pnVaultNodeRef
127127
void read(const unsigned char* buffer);
128128
void write(unsigned char* buffer);
129129
bool operator==(const pnVaultNodeRef& ref) const;
130+
bool operator!=(const pnVaultNodeRef& ref) const { return !operator==(ref); }
130131
};
131132

132133
#endif

0 commit comments

Comments
 (0)