From 46746aeebcac4e9ab39dce584357ec3d4c1e50eb Mon Sep 17 00:00:00 2001 From: Anton Thomasson Date: Tue, 16 Jun 2020 20:07:19 +0200 Subject: [PATCH] Improve set decode logic --- src/ippmsg.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ippmsg.cpp b/src/ippmsg.cpp index f48d6bd..c269597 100644 --- a/src/ippmsg.cpp +++ b/src/ippmsg.cpp @@ -219,6 +219,7 @@ QJsonValue IppMsg::collect_attributes(QJsonArray& attrs) } else if(attrs.begin()->toObject()["tag"] == BeginCollection) { // this is a 1setOf + attrs.pop_front(); continue; } else @@ -229,7 +230,6 @@ QJsonValue IppMsg::collect_attributes(QJsonArray& attrs) else { qDebug() << "out of sync with collection" << tmpobj; - Q_ASSERT("NOOOOO!"); } } @@ -265,10 +265,10 @@ QString IppMsg::consume_attribute(QJsonObject& attrs, Bytestream& data) if(tag == BeginCollection) { - qDebug() << "Unnamed attrs for collection" << unnamed; +// qDebug() << "Unnamed attrs for collection" << unnamed; QJsonValue collected = collect_attributes(unnamed); - qDebug() << "collected" << collected; +// qDebug() << "collected" << collected; taggedValue = QJsonObject {{"tag", tag}, {"value", collected}}; }