diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-07-11 19:01:03 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-07-11 19:01:03 +0900 |
commit | 35f88375844c43ba902229ebdf0e34d5cc7fe85c (patch) | |
tree | 5abab8b2947c4645aa56b9fa9f64278fe2870779 | |
parent | 606db144b9ef6f1b2958ff49c4a6860bff48090c (diff) | |
download | libquotient-35f88375844c43ba902229ebdf0e34d5cc7fe85c.tar.gz libquotient-35f88375844c43ba902229ebdf0e34d5cc7fe85c.zip |
converters.h: overload addTo() for QStringList to fix FTBFS with the new csapi
-rw-r--r-- | lib/converters.h | 6 |
1 files changed, 6 insertions, 0 deletions
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 <typename ValT, bool Force = true, typename = bool> struct AddNode |