Sfoglia il codice sorgente

Fixed compiler warning

Benoit Blanchon 11 anni fa
parent
commit
d192a14e2e
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      srcs/Internals/JsonNode.cpp

+ 2 - 2
srcs/Internals/JsonNode.cpp

@@ -89,7 +89,7 @@ void JsonNode::writeArrayTo(JsonWriter& writer)
     {
         writer.beginArray();
 
-        while (true)
+        for (;;)
         {
             child->writeTo(writer);
 
@@ -115,7 +115,7 @@ void JsonNode::writeObjectTo(JsonWriter& writer)
     {
         writer.beginObject();
 
-        while (true)
+        for (;;)
         {
             writer.writeString(child->content.asKey.key);
             writer.writeColon();