Use QJsonValueRef
This commit is contained in:
@@ -217,10 +217,10 @@ void QobuzCoverProvider::HandleSearchReply(QNetworkReply *reply, const int id) {
|
||||
}
|
||||
QJsonArray array_items = value_items.toArray();
|
||||
|
||||
for (const QJsonValue value : array_items) {
|
||||
for (const QJsonValueRef value : array_items) {
|
||||
|
||||
if (!value.isObject()) {
|
||||
Error("Invalid Json reply, value in items is not a object.", value);
|
||||
Error("Invalid Json reply, value in items is not a object.");
|
||||
continue;
|
||||
}
|
||||
QJsonObject item_obj = value.toObject();
|
||||
|
||||
Reference in New Issue
Block a user