projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use qsrand initialization from Qt examples
[quassel.git]
/
src
/
common
/
types.h
diff --git
a/src/common/types.h
b/src/common/types.h
index
949306b
..
0154247
100644
(file)
--- a/
src/common/types.h
+++ b/
src/common/types.h
@@
-18,8
+18,8
@@
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
-#ifndef
_
TYPES_H_
-#define
_
TYPES_H_
+#ifndef TYPES_H_
+#define TYPES_H_
#include <QDebug>
#include <QString>
#include <QDebug>
#include <QString>
@@
-37,6
+37,9
@@
class SignedId {
inline bool operator==(const SignedId &other) const { return id == other.id; }
inline bool operator!=(const SignedId &other) const { return id != other.id; }
inline bool operator<(const SignedId &other) const { return id < other.id; }
inline bool operator==(const SignedId &other) const { return id == other.id; }
inline bool operator!=(const SignedId &other) const { return id != other.id; }
inline bool operator<(const SignedId &other) const { return id < other.id; }
+ inline bool operator<=(const SignedId &other) const { return id <= other.id; }
+ inline bool operator>(const SignedId &other) const { return id > other.id; }
+ inline bool operator>=(const SignedId &other) const { return id >= other.id; }
inline bool operator==(int i) const { return id == i; }
inline bool operator!=(int i) const { return id != i; }
inline bool operator<(int i) const { return id < i; }
inline bool operator==(int i) const { return id == i; }
inline bool operator!=(int i) const { return id != i; }
inline bool operator<(int i) const { return id < i; }