Quellcode durchsuchen

Fixed GCC warnings

Benoit Blanchon vor 11 Jahren
Ursprung
Commit
2e5b959e8b
2 geänderte Dateien mit 2 neuen und 3 gelöschten Zeilen
  1. 1 1
      JsonGenerator/JsonArrayBase.h
  2. 1 2
      JsonGenerator/JsonHashTableBase.h

+ 1 - 1
JsonGenerator/JsonArrayBase.h

@@ -43,7 +43,7 @@ namespace ArduinoJson
 
         private:
             Internals::JsonValue* items;
-            int count, capacity;
+            int capacity, count;
         };
     }
 }

+ 1 - 2
JsonGenerator/JsonHashTableBase.h

@@ -55,8 +55,7 @@ namespace ArduinoJson
 
         private:
             KeyValuePair* items;
-            int count;
-            int capacity;
+            int capacity, count;
         };
     }
 }