projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implement IRCv3 tag parsing and sending
[quassel.git]
/
src
/
common
/
types.h
diff --git
a/src/common/types.h
b/src/common/types.h
index
a806c58
..
d3742b7
100644
(file)
--- a/
src/common/types.h
+++ b/
src/common/types.h
@@
-1,5
+1,5
@@
/***************************************************************************
/***************************************************************************
- * Copyright (C) 2005-201
8
by the Quassel Project *
+ * Copyright (C) 2005-201
9
by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
@@
-225,6
+225,16
@@
QDataStream& operator>>(QDataStream& in, T& value)
return in;
}
return in;
}
+// STL-compliant hash functor for Qt types
+template<typename T>
+struct Hash
+{
+ uint operator()(const T& t) const
+ {
+ return qHash(t);
+ }
+};
+
// Exceptions
/**
// Exceptions
/**