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); }