Browse Source

Inline plKey::operator==

Adam Johnson 11 years ago
parent
commit
88a60f04f6
  1. 10
      Sources/Plasma/NucleusLib/pnKeyedObject/plKey.cpp
  2. 4
      Sources/Plasma/NucleusLib/pnKeyedObject/plKey.h

10
Sources/Plasma/NucleusLib/pnKeyedObject/plKey.cpp

@ -204,16 +204,6 @@ plKey &plKey::operator=( const plKey &rhs )
return *this;
}
bool plKey::operator==( const plKey &rhs ) const
{
return fKeyData == rhs.fKeyData;
}
bool plKey::operator==( const plKeyData *rhs ) const
{
return fKeyData == rhs;
}
plKeyData *plKey::operator->() const
{
return fKeyData;

4
Sources/Plasma/NucleusLib/pnKeyedObject/plKey.h

@ -67,8 +67,8 @@ public:
~plKey();
plKey& operator=(const plKey& rhs);
bool operator==(const plKey& rhs) const;
bool operator==(const plKeyData* rhs) const;
bool operator==(const plKey& rhs) const { return fKeyData == rhs.fKeyData; }
bool operator==(const plKeyData* rhs) const { return fKeyData == rhs; }
bool operator!=(const plKey& rhs) const { return !(*this == rhs); }
bool operator!=(const plKeyData* rhs) const { return !(*this == rhs); }

Loading…
Cancel
Save