diff options
author | Lars Knoll <lars.knoll@digia.com> | 2014-02-14 09:33:21 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-02-16 16:56:10 +0100 |
commit | 6de515aea2621073325f7d7bb461af26b009d8d0 (patch) | |
tree | f3453c3e6711ff634fe1a8b74f89f868e90f2553 /src/corelib/json | |
parent | 62f01d581bdda6f67cd96af179ae1953e30fa218 (diff) | |
download | qtbase-6de515aea2621073325f7d7bb461af26b009d8d0.tar.gz |
Remove a not required whitespace when writing JSON in compact format
Task-number: QTBUG-36682
Change-Id: I0c1c0de850504c8dff20a5ae724cc868d9f983f8
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/json')
-rw-r--r-- | src/corelib/json/qjsonwriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/json/qjsonwriter.cpp b/src/corelib/json/qjsonwriter.cpp index 5defd497b1..17c22429a5 100644 --- a/src/corelib/json/qjsonwriter.cpp +++ b/src/corelib/json/qjsonwriter.cpp @@ -195,7 +195,7 @@ static void objectContentToJson(const QJsonPrivate::Object *o, QByteArray &json, json += indentString; json += '"'; json += escapedString(e->key()); - json += "\": "; + json += compact ? "\":" : "\": "; valueToJson(o, e->value, json, indent, compact); if (++i == o->length) { |