From 8ba7f69ab48eccb067a865612aee7a508009b39f Mon Sep 17 00:00:00 2001 From: Jamie Seward Date: Mon, 16 Oct 2017 00:49:59 -0700 Subject: [PATCH] Fix whitespace --- src/json.hpp | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/src/json.hpp b/src/json.hpp index d4dfd538..ef55e2ea 100644 --- a/src/json.hpp +++ b/src/json.hpp @@ -3035,19 +3035,19 @@ class parser case token_type::begin_object: { if (keep) - { - if (callback) - { - keep = callback(depth++, parse_event_t::object_start, result); - } + { + if (callback) + { + keep = callback(depth++, parse_event_t::object_start, result); + } - if (not callback or keep) - { - // explicitly set result to object to cope with {} - result.m_type = value_t::object; - result.m_value = value_t::object; - } - } + if (not callback or keep) + { + // explicitly set result to object to cope with {} + result.m_type = value_t::object; + result.m_value = value_t::object; + } + } // read next token get_token(); @@ -3140,17 +3140,17 @@ class parser { if (keep) { - if (callback) - { - keep = callback(depth++, parse_event_t::array_start, result); - } + if (callback) + { + keep = callback(depth++, parse_event_t::array_start, result); + } - if (not callback or keep) - { - // explicitly set result to object to cope with [] - result.m_type = value_t::array; - result.m_value = value_t::array; - } + if (not callback or keep) + { + // explicitly set result to array to cope with [] + result.m_type = value_t::array; + result.m_value = value_t::array; + } } // read next token