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
|
else
|
||||||
result += "Invalid";
|
result += "Invalid";
|
||||||
break;
|
break;
|
||||||
case String:
|
case String:
|
||||||
if (!m_name.isEmpty())
|
if (!m_name.isEmpty())
|
||||||
result += m_name + "=";
|
result += m_name + "=";
|
||||||
result += '"' + escapeCString(m_data) + '"';
|
result += '"' + escapeCString(m_data) + '"';
|
||||||
break;
|
break;
|
||||||
case Number:
|
case Number:
|
||||||
if (!m_name.isEmpty())
|
if (!m_name.isEmpty())
|
||||||
result += '"' + m_name + "\":";
|
result += '"' + m_name + "\":";
|
||||||
result += m_data;
|
result += m_data;
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ public:
|
|||||||
inline const QList<JsonValue> &children() const { return m_children; }
|
inline const QList<JsonValue> &children() const { return m_children; }
|
||||||
inline int childCount() const { return m_children.size(); }
|
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 &childAt(int index) { return m_children[index]; }
|
||||||
JsonValue findChild(const char *name) const;
|
JsonValue findChild(const char *name) const;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user