From: Manuel Nickschas Date: Tue, 4 Oct 2016 21:01:40 +0000 (+0200) Subject: common: Remove unused Exception type X-Git-Tag: 0.12.5~44 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=b3f981ea90cadfbce4dd4e9b477dc92c48ee1f13 common: Remove unused Exception type Also fix a typo in docs. (cherry picked from commit 850493dbdb0a5580f7feceeaecdcb898c41f7b94) --- diff --git a/src/common/types.h b/src/common/types.h index 8782d744..81c5715d 100644 --- 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 - * @param[in] value Value to deserialize into + * @param[out] value Value to deserialize into * @returns A reference to the stream */ template>(QDataStream &in, T &value) { value = static_cast(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; -};