summaryrefslogtreecommitdiffstats
path: root/src/corelib/json
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2014-02-14 09:33:21 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-02-16 16:56:10 +0100
commit6de515aea2621073325f7d7bb461af26b009d8d0 (patch)
treef3453c3e6711ff634fe1a8b74f89f868e90f2553 /src/corelib/json
parent62f01d581bdda6f67cd96af179ae1953e30fa218 (diff)
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.cpp2
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) {