diff options
Diffstat (limited to 'jobs')
-rw-r--r-- | jobs/converters.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/jobs/converters.h b/jobs/converters.h index b52cfaa2..376dfeab 100644 --- a/jobs/converters.h +++ b/jobs/converters.h @@ -34,7 +34,8 @@ namespace QMatrixClient inline QJsonValue toJson(const QVector<T>& vals) { QJsonArray ar; - std::copy(vals.begin(), vals.end(), std::back_inserter(ar)); + for (const auto& v: vals) + ar.push_back(toJson(v)); return ar; } |