提交 01d656be 编写于 作者: M Max Bruckner

refactor cJSONUtils_SortObject

上级 7bf62ff4
......@@ -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);
}
......
......@@ -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);
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册