From 7d3b21eb3338a6e7425d0f88916694692ebc28c2 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 31 Jul 2012 05:18:21 +0000 Subject: Uuid had an == operator but not != --- src/unstable/uuid.cpp | 5 +++++ src/unstable/uuid.h | 1 + 2 files changed, 6 insertions(+) (limited to 'src') diff --git a/src/unstable/uuid.cpp b/src/unstable/uuid.cpp index 0257270..aef8bc0 100644 --- a/src/unstable/uuid.cpp +++ b/src/unstable/uuid.cpp @@ -139,6 +139,11 @@ bool Bu::Uuid::operator==( const Uuid &rhs ) const return memcmp( data, rhs.data, 16 ) == 0; } +bool Bu::Uuid::operator!=( const Uuid &rhs ) const +{ + return !(*this == rhs); +} + Bu::Uuid &Bu::Uuid::operator=( const Uuid &rhs ) { memcpy( data, rhs.data, 16 ); diff --git a/src/unstable/uuid.h b/src/unstable/uuid.h index de20d4c..bb3d608 100644 --- a/src/unstable/uuid.h +++ b/src/unstable/uuid.h @@ -46,6 +46,7 @@ namespace Bu void set( const Bu::String &sSrc ); bool operator==( const Uuid &rhs ) const; + bool operator!=( const Uuid &rhs ) const; Uuid &operator=( const Bu::String &rhs ) { set( rhs ); return *this; } Uuid &operator=( const Uuid &rhs ); -- cgit v1.2.3