aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/corelib/tools/jsonhelper.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/corelib/tools/jsonhelper.h b/src/lib/corelib/tools/jsonhelper.h
index 991d6bd6c..e695bd465 100644
--- a/src/lib/corelib/tools/jsonhelper.h
+++ b/src/lib/corelib/tools/jsonhelper.h
@@ -62,7 +62,7 @@ template<> inline QStringList fromJson(const QJsonValue &v)
const QJsonArray &jsonList = v.toArray();
QStringList stringList;
std::transform(jsonList.begin(), jsonList.end(), std::back_inserter(stringList),
- [](const QVariant &v) { return v.toString(); });
+ [](const auto &v) { return v.toString(); });
return stringList;
}
template<> inline QVariantMap fromJson(const QJsonValue &v) { return v.toObject().toVariantMap(); }