From 1fa981d09e6e391312f0b4aafe1c93898b800c59 Mon Sep 17 00:00:00 2001 From: Darryl Pogue Date: Fri, 30 Mar 2012 22:03:55 -0700 Subject: [PATCH] plUUID operator< should return a bool. --- Sources/Plasma/NucleusLib/pnUUID/pnUUID.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Sources/Plasma/NucleusLib/pnUUID/pnUUID.h b/Sources/Plasma/NucleusLib/pnUUID/pnUUID.h index 10810071..567fd0b5 100644 --- a/Sources/Plasma/NucleusLib/pnUUID/pnUUID.h +++ b/Sources/Plasma/NucleusLib/pnUUID/pnUUID.h @@ -80,9 +80,16 @@ public: void Read( hsStream * s ); void Write( hsStream * s ); operator plString ( void ) const { return AsString();} - bool operator==( const plUUID & other ) const { return IsEqualTo( &other ); } - bool operator!=( const plUUID & other ) const { return !IsEqualTo( &other ); } - int operator <( const plUUID & other ) const { return CompareTo( &other ); } + + bool operator==(const plUUID& other) const { + return IsEqualTo(&other); + } + bool operator!=(const plUUID& other) const { + return !IsEqualTo(&other); + } + bool operator<(const plUUID& other) const { + return CompareTo(&other) == -1; + } operator Uuid () const; static plUUID Generate();