summaryrefslogtreecommitdiff
path: root/plugins/JSON/Source/JSONIterators.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-06-02 20:55:18 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-06-02 20:55:18 +0000
commit78c0815c4118fe24ab78cce2dc48a6232dcd824a (patch)
tree8512c50df70b8dd80c919e88ade3419207c95956 /plugins/JSON/Source/JSONIterators.cpp
parentce816d83a8c75808e0eb06832592bffefe4a8dc4 (diff)
- code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@270 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/JSON/Source/JSONIterators.cpp')
-rw-r--r--plugins/JSON/Source/JSONIterators.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/JSON/Source/JSONIterators.cpp b/plugins/JSON/Source/JSONIterators.cpp
index 5b140d9b17..a22db2af71 100644
--- a/plugins/JSON/Source/JSONIterators.cpp
+++ b/plugins/JSON/Source/JSONIterators.cpp
@@ -17,7 +17,7 @@ JSONNode::json_iterator JSONNode::find(const json_string & name_t){
JSON_CHECK_INTERNAL();
JSON_ASSERT(type() == JSON_NODE, JSON_TEXT("finding a non-iteratable node"));
makeUniqueInternal();
- if (JSONNode ** res = internal -> at(name_t)){
+ if (JSONNode ** res = internal -> at(name_t)) {
return ptr_to_json_iterator(res);
}
return end();
@@ -28,7 +28,7 @@ JSONNode::json_iterator JSONNode::find(const json_string & name_t){
JSON_CHECK_INTERNAL();
JSON_ASSERT(type() == JSON_NODE, JSON_TEXT("finding a non-iteratable node"));
makeUniqueInternal();
- if (JSONNode ** res = internal -> at_nocase(name_t)){
+ if (JSONNode ** res = internal -> at_nocase(name_t)) {
return ptr_to_json_iterator(res);
}
return end();
@@ -71,7 +71,7 @@ JSONNode::json_iterator JSONNode::insert(json_iterator pos, const JSONNode & x){
JSON_CHECK_INTERNAL();
JSON_ASSERT(type() == JSON_NODE || type() == JSON_ARRAY, JSON_TEXT("erasing a non-iteratable node"));
JSON_ASSERT_UNIQUE("insert 1");
- if (json_iterator_ptr(pos) >= internal -> Children.end()){
+ if (json_iterator_ptr(pos) >= internal -> Children.end()) {
internal -> push_back(x);
return end() - 1;
}
@@ -104,7 +104,7 @@ JSONNode::json_iterator JSONNode::insertFFF(json_iterator pos, JSONNode ** const
JSONNode::const_iterator JSONNode::find(const json_string & name_t) const {
JSON_CHECK_INTERNAL();
JSON_ASSERT(type() == JSON_NODE, JSON_TEXT("finding a non-iteratable node"));
- if (JSONNode ** res = internal -> at(name_t)){
+ if (JSONNode ** res = internal -> at(name_t)) {
return JSONNode::const_iterator(res);
}
return JSONNode::const_iterator(internal -> end());
@@ -114,7 +114,7 @@ JSONNode::json_iterator JSONNode::insertFFF(json_iterator pos, JSONNode ** const
JSONNode::const_iterator JSONNode::find_nocase(const json_string & name_t) const {
JSON_CHECK_INTERNAL();
JSON_ASSERT(type() == JSON_NODE, JSON_TEXT("finding a non-iteratable node"));
- if (JSONNode ** res = internal -> at_nocase(name_t)){
+ if (JSONNode ** res = internal -> at_nocase(name_t)) {
return JSONNode::const_iterator(res);
}
return JSONNode::const_iterator(internal -> end());
@@ -153,7 +153,7 @@ JSONNode::json_iterator JSONNode::insertFFF(json_iterator pos, JSONNode ** const
JSON_CHECK_INTERNAL();
JSON_ASSERT(type() == JSON_NODE || type() == JSON_ARRAY, JSON_TEXT("erasing a non-iteratable node"));
JSON_ASSERT_UNIQUE("insert 1");
- if (pos.it < internal -> Children.begin()){
+ if (pos.it < internal -> Children.begin()) {
internal -> push_front(x);
return rend() - 1;
}