summaryrefslogtreecommitdiff
path: root/library/quuid.h
Unidiff
Diffstat (limited to 'library/quuid.h') (more/less context) (ignore whitespace changes)
-rw-r--r--library/quuid.h27
1 files changed, 24 insertions, 3 deletions
diff --git a/library/quuid.h b/library/quuid.h
index 4f7a720..841a00f 100644
--- a/library/quuid.h
+++ b/library/quuid.h
@@ -1,5 +1,5 @@
1/********************************************************************** 1/**********************************************************************
2** Copyright (C) 2000 Trolltech AS. All rights reserved. 2** Copyright (C) 2000-2002 Trolltech AS. All rights reserved.
3** 3**
4** This file is part of Qtopia Environment. 4** This file is part of the Qtopia Environment.
5** 5**
@@ -92,2 +92,12 @@ struct Q_EXPORT QUuid
92 92
93 inline bool operator<(const QUuid &orig) const
94 {
95 return ( memcmp(this, &orig, sizeof(QUuid)) < 0);
96 }
97
98 inline bool operator>(const QUuid &orig) const
99 {
100 return ( memcmp(this, &orig, sizeof(QUuid) ) > 0);
101 }
102
93#if defined(Q_OS_WIN32) 103#if defined(Q_OS_WIN32)
@@ -121,2 +131,13 @@ struct Q_EXPORT QUuid
121 } 131 }
132
133 inline bool operator<(const QUuid &orig) const
134 {
135 return ( memcmp(this, &orig, sizeof(QUuid) ) < 0);
136 }
137
138 inline bool operator>(const QUuid &orig) const
139 {
140 return ( memcmp(this, &orig, sizeof(QUuid) ) > 0);
141 }
142
122#endif 143#endif
@@ -125,3 +146,3 @@ struct Q_EXPORT QUuid
125 { 146 {
126 memcpy( this, &uuid, sizeof(uuid_t) ); 147 memcpy( this, uuid, sizeof(uuid_t) );
127 } 148 }