mirror of
https://github.com/DaveGamble/cJSON.git
synced 2026-11-09 16:21:49 +00:00
refactor cJSONUtils_SortObject
This commit is contained in:
1 parent
7bf62ff4dc
commit
01d656bebc
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
+1
-1
@@ -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);
|
||||
Reference in new issue
Block a user