Commit 00875795 authored by hjk's avatar hjk
Browse files

debugger: cosmetics in the json parser

parent 39d3d35c
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment