Commit 2eb478cc authored by Volker Krause's avatar Volker Krause
Browse files

Fix infinite recursion in QStringList DataStream operator with Qt6

QStringList and QList<QString> are actually the same type in Qt6, so we
don't need the QStringList special case anymore.
parent 3d75bb44
Pipeline #182443 passed with stage
in 8 minutes and 53 seconds
......@@ -265,6 +265,7 @@ inline Akonadi::Protocol::DataStream &operator>>(Akonadi::Protocol::DataStream &
return stream;
}
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
inline Akonadi::Protocol::DataStream &operator<<(Akonadi::Protocol::DataStream &stream, const QStringList &list)
{
return stream << static_cast<QList<QString>>(list);
......@@ -274,6 +275,7 @@ inline Akonadi::Protocol::DataStream &operator>>(Akonadi::Protocol::DataStream &
{
return stream >> static_cast<QList<QString> &>(list);
}
#endif
namespace Akonadi
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment