Skip to content

Commit

Permalink
Merge pull request #1720 from madeso/master
Browse files Browse the repository at this point in the history
Fixes issue #1718
  • Loading branch information
miloyip authored May 18, 2020
2 parents 8f4c021 + ac0fc79 commit 1a80382
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/rapidjson/writer.h
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,8 @@ class Writer {
os_->Flush();
}

static const size_t kDefaultLevelDepth = 32;

protected:
//! Information for each nested level
struct Level {
Expand All @@ -291,8 +293,6 @@ class Writer {
bool inArray; //!< true if in array, otherwise in object
};

static const size_t kDefaultLevelDepth = 32;

bool WriteNull() {
PutReserve(*os_, 4);
PutUnsafe(*os_, 'n'); PutUnsafe(*os_, 'u'); PutUnsafe(*os_, 'l'); PutUnsafe(*os_, 'l'); return true;
Expand Down

0 comments on commit 1a80382

Please sign in to comment.