StelJsonParser.cpp   StelJsonParser.cpp 
skipping to change at line 388 skipping to change at line 388
break; break;
} }
case QVariant::Map: case QVariant::Map:
{ {
const QByteArray prepend(indentLevel, '\t'); const QByteArray prepend(indentLevel, '\t');
output->write(prepend); output->write(prepend);
output->write("{\n"); output->write("{\n");
++indentLevel; ++indentLevel;
const QVariantMap& m = v.toMap(); const QVariantMap& m = v.toMap();
int j =0; int j =0;
for (QVariantMap::ConstIterator i=m.begin();i!=m.end ();++i) for (QVariantMap::ConstIterator i=m.constBegin();i!= m.constEnd();++i)
{ {
output->write(prepend); output->write(prepend);
output->write("\t\""); output->write("\t\"");
output->write(i.key().toUtf8()); output->write(i.key().toUtf8());
output->write("\": "); output->write("\": ");
// Break line if we start an JSON Object for nice looking // Break line if we start an JSON Object for nice looking
if (i.value().type()==QVariant::Map) if (i.value().type()==QVariant::Map)
output->putChar('\n'); output->putChar('\n');
write(i.value(), output, indentLevel); write(i.value(), output, indentLevel);
if (++j!=m.size()) if (++j!=m.size())
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/