forked from qt-creator/qt-creator
debugger: cosmetics in the json parser
This commit is contained in:
@@ -313,12 +313,12 @@ QByteArray JsonValue::toString(bool multiline, int indent) const
|
||||
else
|
||||
result += "Invalid";
|
||||
break;
|
||||
case String:
|
||||
case String:
|
||||
if (!m_name.isEmpty())
|
||||
result += m_name + "=";
|
||||
result += '"' + escapeCString(m_data) + '"';
|
||||
break;
|
||||
case Number:
|
||||
case Number:
|
||||
if (!m_name.isEmpty())
|
||||
result += '"' + m_name + "\":";
|
||||
result += m_data;
|
||||
|
||||
@@ -71,7 +71,7 @@ public:
|
||||
inline const QList<JsonValue> &children() const { return m_children; }
|
||||
inline int childCount() const { return m_children.size(); }
|
||||
|
||||
const JsonValue &childAt(int index) const { return m_children[index]; }
|
||||
const JsonValue &childAt(int index) const { return m_children[index]; }
|
||||
JsonValue &childAt(int index) { return m_children[index]; }
|
||||
JsonValue findChild(const char *name) const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user