From c7a85f46d2e608c867c793ff208af8c5b36f576e Mon Sep 17 00:00:00 2001 From: Swaroop Sridhar Date: Wed, 1 Apr 2020 18:43:19 -0700 Subject: [PATCH] Fix spacing after if () in a couple of headers --- include/rapidjson/cursorstreamwrapper.h | 2 +- include/rapidjson/document.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/rapidjson/cursorstreamwrapper.h b/include/rapidjson/cursorstreamwrapper.h index 52c11a7c0..be470fbc2 100644 --- a/include/rapidjson/cursorstreamwrapper.h +++ b/include/rapidjson/cursorstreamwrapper.h @@ -46,7 +46,7 @@ class CursorStreamWrapper : public GenericStreamWrapper { // counting line and column number Ch Take() { Ch ch = this->is_.Take(); - if(ch == '\n') { + if (ch == '\n') { line_ ++; col_ = 0; } else { diff --git a/include/rapidjson/document.h b/include/rapidjson/document.h index 68aaae7e6..efbfc7263 100644 --- a/include/rapidjson/document.h +++ b/include/rapidjson/document.h @@ -2173,11 +2173,11 @@ class GenericValue { const SizeType len1 = GetStringLength(); const SizeType len2 = rhs.GetStringLength(); - if(len1 != len2) { return false; } + if (len1 != len2) { return false; } const Ch* const str1 = GetString(); const Ch* const str2 = rhs.GetString(); - if(str1 == str2) { return true; } // fast path for constant string + if (str1 == str2) { return true; } // fast path for constant string return (std::memcmp(str1, str2, sizeof(Ch) * len1) == 0); }