irc/quassel: Prepare for Qt5-5.14

PR:		244964
This commit is contained in:
Tobias C. Berner 2020-04-04 11:22:39 +00:00
parent d38575016b
commit 2f2eec437c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=530642

View File

@ -0,0 +1,23 @@
Fix with Qt5-5.14
Obtained from:
https://github.com/quassel/quassel/commit/579e559a6322209df7cd51c34801fecff5fe734b
--- src/common/types.h.orig 2020-04-04 10:50:56 UTC
+++ src/common/types.h
@@ -140,6 +140,7 @@ Q_DECLARE_METATYPE(QHostAddress)
typedef QList<MsgId> MsgIdList;
typedef QList<BufferId> BufferIdList;
+#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
/**
* Catch-all stream serialization operator for enum types.
*
@@ -169,6 +170,7 @@ QDataStream &operator>>(QDataStream &in, T &value) {
value = static_cast<T>(v);
return in;
}
+#endif
// Exceptions