debugger: cosmetics in the json parser

This commit is contained in:
hjk
2009-05-19 12:07:40 +02:00
parent 39d3d35cdc
commit 0087579587
2 changed files with 3 additions and 3 deletions

View File

@@ -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;

View File

@@ -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;