From 850493dbdb0a5580f7feceeaecdcb898c41f7b94 Mon Sep 17 00:00:00 2001 From: Manuel Nickschas Date: Tue, 4 Oct 2016 23:01:40 +0200 Subject: [PATCH] common: Remove unused Exception type Also fix a typo in docs. --- src/common/types.h | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/common/types.h b/src/common/types.h index 5c800952..34a5fb1e 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; -}; -- 2.20.1