Explorar o código

reformatting: cJSON_HasObjectItem

Max Bruckner %!s(int64=9) %!d(string=hai) anos
pai
achega
17e13946fe
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      cJSON.c

+ 4 - 1
cJSON.c

@@ -1615,7 +1615,10 @@ cJSON *cJSON_GetObjectItem(cJSON *object, const char *string)
     return c;
 }
 
-int cJSON_HasObjectItem(cJSON *object,const char *string)		{return cJSON_GetObjectItem(object,string)?1:0;}
+int cJSON_HasObjectItem(cJSON *object,const char *string)
+{
+    return cJSON_GetObjectItem(object, string) ? 1 : 0;
+}
 
 /* Utility for array list handling. */
 static void suffix_object(cJSON *prev,cJSON *item) {prev->next=item;item->prev=prev;}