1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-17 18:59:09 +00:00

Inline plKey::operator==

This commit is contained in:
2013-12-20 19:00:39 -05:00
parent 366a9a11a4
commit 88a60f04f6
2 changed files with 2 additions and 12 deletions

View File

@ -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;

View File

@ -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); }