From 01d656bebcbe43a61442030a0d1833eff1a0edef Mon Sep 17 00:00:00 2001 From: Max Bruckner Date: Sun, 30 Apr 2017 13:16:58 +0200 Subject: [PATCH] refactor cJSONUtils_SortObject --- cJSON_Utils.c | 2 +- cJSON_Utils.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cJSON_Utils.c b/cJSON_Utils.c index 1b87d1b..2f131a8 100644 --- a/cJSON_Utils.c +++ b/cJSON_Utils.c @@ -1140,7 +1140,7 @@ static cJSON *cJSONUtils_SortList(cJSON *list) return result; } -CJSON_PUBLIC(void) cJSONUtils_SortObject(cJSON *object) +CJSON_PUBLIC(void) cJSONUtils_SortObject(cJSON * const object) { object->child = cJSONUtils_SortList(object->child); } diff --git a/cJSON_Utils.h b/cJSON_Utils.h index 88898ee..d7234bb 100644 --- a/cJSON_Utils.h +++ b/cJSON_Utils.h @@ -64,4 +64,4 @@ CJSON_PUBLIC(cJSON *) cJSONUtils_GenerateMergePatch(cJSON *from, cJSON *to); CJSON_PUBLIC(char *) cJSONUtils_FindPointerFromObjectTo(const cJSON * const object, const cJSON * const target); /* Sorts the members of the object into alphabetical order. */ -CJSON_PUBLIC(void) cJSONUtils_SortObject(cJSON *object); +CJSON_PUBLIC(void) cJSONUtils_SortObject(cJSON * const object);