Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/rapidjson/cursorstreamwrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class CursorStreamWrapper : public GenericStreamWrapper<InputStream, Encoding> {
// counting line and column number
Ch Take() {
Ch ch = this->is_.Take();
if(ch == '\n') {
if (ch == '\n') {
line_ ++;
col_ = 0;
} else {
Expand Down
4 changes: 2 additions & 2 deletions include/rapidjson/document.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down