aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2012-07-31 05:18:21 +0000
committerMike Buland <eichlan@xagasoft.com>2012-07-31 05:18:21 +0000
commit7d3b21eb3338a6e7425d0f88916694692ebc28c2 (patch)
treee1f9a137e699b0f1a6b6a9ee5bcc2952240843ae /src
parent630b75aadac4ed6c5e71fb79cbca2ac435abbf83 (diff)
downloadlibbu++-7d3b21eb3338a6e7425d0f88916694692ebc28c2.tar.gz
libbu++-7d3b21eb3338a6e7425d0f88916694692ebc28c2.tar.bz2
libbu++-7d3b21eb3338a6e7425d0f88916694692ebc28c2.tar.xz
libbu++-7d3b21eb3338a6e7425d0f88916694692ebc28c2.zip
Uuid had an == operator but not !=
Diffstat (limited to 'src')
-rw-r--r--src/unstable/uuid.cpp5
-rw-r--r--src/unstable/uuid.h1
2 files changed, 6 insertions, 0 deletions
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
139 return memcmp( data, rhs.data, 16 ) == 0; 139 return memcmp( data, rhs.data, 16 ) == 0;
140} 140}
141 141
142bool Bu::Uuid::operator!=( const Uuid &rhs ) const
143{
144 return !(*this == rhs);
145}
146
142Bu::Uuid &Bu::Uuid::operator=( const Uuid &rhs ) 147Bu::Uuid &Bu::Uuid::operator=( const Uuid &rhs )
143{ 148{
144 memcpy( data, rhs.data, 16 ); 149 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
46 void set( const Bu::String &sSrc ); 46 void set( const Bu::String &sSrc );
47 47
48 bool operator==( const Uuid &rhs ) const; 48 bool operator==( const Uuid &rhs ) const;
49 bool operator!=( const Uuid &rhs ) const;
49 Uuid &operator=( const Bu::String &rhs ) { set( rhs ); return *this; } 50 Uuid &operator=( const Bu::String &rhs ) { set( rhs ); return *this; }
50 Uuid &operator=( const Uuid &rhs ); 51 Uuid &operator=( const Uuid &rhs );
51 52