refactor cJSONUtils_SortObject

This commit is contained in:
Max Bruckner 2017-04-30 13:16:58 +02:00
parent 7bf62ff4dc
commit 01d656bebc
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}

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);
/* Sorts the members of the object into alphabetical order. */
CJSON_PUBLIC(void) cJSONUtils_SortObject(cJSON *object);
CJSON_PUBLIC(void) cJSONUtils_SortObject(cJSON * const object);