From 35f88375844c43ba902229ebdf0e34d5cc7fe85c Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Wed, 11 Jul 2018 19:01:03 +0900 Subject: converters.h: overload addTo() for QStringList to fix FTBFS with the new csapi --- lib/converters.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/converters.h') diff --git a/lib/converters.h b/lib/converters.h index 0b37fc48..1a8f3cfa 100644 --- a/lib/converters.h +++ b/lib/converters.h @@ -325,6 +325,12 @@ namespace QMatrixClient : QStringLiteral("false")); } + inline void addTo(QUrlQuery& q, const QString& k, const QStringList& vals) + { + for (const auto& v: vals) + q.addQueryItem(k, v); + } + // This one is for types that don't have isEmpty() template struct AddNode -- cgit v1.2.3