aboutsummaryrefslogtreecommitdiff
path: root/src/unstable/uuid.cpp
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/unstable/uuid.cpp
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 '')
-rw-r--r--src/unstable/uuid.cpp5
1 files changed, 5 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 );