refactor cJSONUtils_SortObject

This commit is contained in:
Max Bruckner
2017-05-02 01:30:58 +02:00
parent 7bf62ff4dc
commit 01d656bebc
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1140,7 +1140,7 @@ static cJSON *cJSONUtils_SortList(cJSON *list)
return result; return result;
} }
CJSON_PUBLIC(void) cJSONUtils_SortObject(cJSON *object) CJSON_PUBLIC(void) cJSONUtils_SortObject(cJSON * const object)
{ {
object->child = cJSONUtils_SortList(object->child); object->child = cJSONUtils_SortList(object->child);
} }
+1 -1
View File
@@ -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); CJSON_PUBLIC(char *) cJSONUtils_FindPointerFromObjectTo(const cJSON * const object, const cJSON * const target);
/* Sorts the members of the object into alphabetical order. */ /* Sorts the members of the object into alphabetical order. */
CJSON_PUBLIC(void) cJSONUtils_SortObject(cJSON *object); CJSON_PUBLIC(void) cJSONUtils_SortObject(cJSON * const object);