diff options
author | George Hazan <george.hazan@gmail.com> | 2012-06-02 20:55:18 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-06-02 20:55:18 +0000 |
commit | 78c0815c4118fe24ab78cce2dc48a6232dcd824a (patch) | |
tree | 8512c50df70b8dd80c919e88ade3419207c95956 /plugins/JSON/Source/JSONChildren.h | |
parent | ce816d83a8c75808e0eb06832592bffefe4a8dc4 (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/JSONChildren.h')
-rw-r--r-- | plugins/JSON/Source/JSONChildren.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/JSON/Source/JSONChildren.h b/plugins/JSON/Source/JSONChildren.h index acc9a712a2..d7a38bb9dc 100644 --- a/plugins/JSON/Source/JSONChildren.h +++ b/plugins/JSON/Source/JSONChildren.h @@ -74,7 +74,7 @@ public: } //clears (and deletes) everything from the vector and sets it's size to 0 - inline void clear(){ + inline void clear() { if (array){ //don't bother clearing anything if there is nothing in it JSON_ASSERT(mycapacity != 0, JSON_TEXT("mycapacity is not zero, but array is null")); deleteAll(); @@ -204,7 +204,7 @@ public: } //shrinks the array to only as large as it needs to be to hold everything within it - inline void shrink(){ + inline void shrink() { if (mysize == 0){ //size is zero, we should completely free the array libjson_free<JSONNode*>(array); //free does checks for a null pointer, so don't bother checking array = 0; |