Simplify fromQJsonValue loops

This commit is contained in:
GriffinR
2025-04-03 13:53:33 -04:00
parent 011f6196b5
commit 029e959bfe
9 changed files with 250 additions and 304 deletions

View File

@@ -132,7 +132,9 @@ public:
int>::type = 0>
Json(const V & v) : Json(array(v.begin(), v.end())) {}
static const Json fromQJsonValue(QJsonValue value);
static Json fromQJsonValue(const QJsonValue &value);
static void append(Json::array *array, const QJsonArray &qArray);
static void append(Json::object *object, const QJsonObject &qObject);
// This prevents Json(some_pointer) from accidentally producing a bool. Use
// Json(bool(some_pointer)) if that behavior is desired.