From d192a14e2e989e543774cd08a14d6f9a41a999d0 Mon Sep 17 00:00:00 2001 From: Benoit Blanchon Date: Sat, 11 Oct 2014 16:59:16 +0200 Subject: [PATCH] Fixed compiler warning --- srcs/Internals/JsonNode.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/srcs/Internals/JsonNode.cpp b/srcs/Internals/JsonNode.cpp index 8e08be31..2c3e4e1c 100644 --- a/srcs/Internals/JsonNode.cpp +++ b/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();