From 55e33d7100ec45547c7d192e42f6b411ab35d48c Mon Sep 17 00:00:00 2001 From: Max Bruckner Date: Fri, 30 Sep 2016 10:39:48 +0700 Subject: [PATCH] reformatting: cJSON_AddItemReferenceToArray --- cJSON.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cJSON.c b/cJSON.c index 0001e8f..b8a2a64 100644 --- a/cJSON.c +++ b/cJSON.c @@ -1699,7 +1699,11 @@ void cJSON_AddItemToObjectCS(cJSON *object, const char *string, cJSON *item) cJSON_AddItemToArray(object, item); } -void cJSON_AddItemReferenceToArray(cJSON *array, cJSON *item) {cJSON_AddItemToArray(array,create_reference(item));} +void cJSON_AddItemReferenceToArray(cJSON *array, cJSON *item) +{ + cJSON_AddItemToArray(array, create_reference(item)); +} + void cJSON_AddItemReferenceToObject(cJSON *object,const char *string,cJSON *item) {cJSON_AddItemToObject(object,string,create_reference(item));} cJSON *cJSON_DetachItemFromArray(cJSON *array,int which) {cJSON *c=array->child;while (c && which>0) c=c->next,which--;if (!c) return 0;