From 88a60f04f6879be662d9e7ee3a4f7b9ece9c4150 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Fri, 20 Dec 2013 19:00:39 -0500 Subject: [PATCH] Inline plKey::operator== --- Sources/Plasma/NucleusLib/pnKeyedObject/plKey.cpp | 10 ---------- Sources/Plasma/NucleusLib/pnKeyedObject/plKey.h | 4 ++-- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/Sources/Plasma/NucleusLib/pnKeyedObject/plKey.cpp b/Sources/Plasma/NucleusLib/pnKeyedObject/plKey.cpp index 9f40017b..aced44a0 100644 --- a/Sources/Plasma/NucleusLib/pnKeyedObject/plKey.cpp +++ b/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; diff --git a/Sources/Plasma/NucleusLib/pnKeyedObject/plKey.h b/Sources/Plasma/NucleusLib/pnKeyedObject/plKey.h index 26bc2a0b..ced49d31 100644 --- a/Sources/Plasma/NucleusLib/pnKeyedObject/plKey.h +++ b/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); }