summaryrefslogtreecommitdiff
path: root/src/modules/json/JSONWriter.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-07-05 22:41:06 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-07-05 22:41:06 +0000
commite3cefc7b6ca803e3f87dbadae54a110332778490 (patch)
tree0ee41f14f962f946c9e64fae4a11fbcb197af853 /src/modules/json/JSONWriter.cpp
parentf0fb070eab8f276e66c0154363656045bc0dadb3 (diff)
- first of the /Core standard plugins;
- code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@778 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/json/JSONWriter.cpp')
-rw-r--r--src/modules/json/JSONWriter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/json/JSONWriter.cpp b/src/modules/json/JSONWriter.cpp
index ae95773f6d..550a03dadd 100644
--- a/src/modules/json/JSONWriter.cpp
+++ b/src/modules/json/JSONWriter.cpp
@@ -41,7 +41,7 @@ const static json_string WRITER_EMPTY;
if (amount == 0xFFFFFFFF) return WRITER_EMPTY;
json_string result;
result.reserve(amount);
- for(unsigned int i = 0; i < amount; ++i){
+ for(unsigned int i=0; i < amount; ++i){
result += INDENT;
}
return result;
@@ -75,7 +75,7 @@ json_string internalJSONNode::WriteChildren(unsigned int indent){
}
//else it's not formatted, leave the indentation strings empty
const size_t size_minus_one = Children.size() - 1;
- size_t i = 0;
+ size_t i=0;
json_foreach(Children, it){
res += indent_plus_one + (*it) -> internal -> Write(indent, type() == JSON_ARRAY);
if (i < size_minus_one) res += JSON_TEXT(","); //the last one does not get a comma, but all of the others do