projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
933e1bf
)
common: Remove unused Exception type
author
Manuel Nickschas
<sputnick@quassel-irc.org>
Tue, 4 Oct 2016 21:01:40 +0000
(23:01 +0200)
committer
Manuel Nickschas
<sputnick@quassel-irc.org>
Tue, 4 Oct 2016 21:01:40 +0000
(23:01 +0200)
Also fix a typo in docs.
src/common/types.h
patch
|
blob
|
history
diff --git
a/src/common/types.h
b/src/common/types.h
index
5c80095
..
34a5fb1
100644
(file)
--- a/
src/common/types.h
+++ b/
src/common/types.h
@@
-125,7
+125,7
@@
QDataStream &operator<<(QDataStream &out, T value) {
* Catch-all stream serialization operator for enum types.
*
* @param[in,out] in Stream to deserialize from
* Catch-all stream serialization operator for enum types.
*
* @param[in,out] in Stream to deserialize from
- * @param[
in]
value Value to deserialize into
+ * @param[
out]
value Value to deserialize into
* @returns A reference to the stream
*/
template<typename T,
* @returns A reference to the stream
*/
template<typename T,
@@
-136,13
+136,3
@@
QDataStream &operator>>(QDataStream &in, T &value) {
value = static_cast<T>(v);
return in;
}
value = static_cast<T>(v);
return in;
}
-
-//! Base class for exceptions.
-struct Exception {
- Exception(QString msg = "Unknown Exception") : _msg(msg) {}
- virtual ~Exception() {} // make gcc happy
- virtual inline QString msg() { return _msg; }
-
-protected:
- QString _msg;
-};