Skip to content

Commit

Permalink
Fixes issue #1718
Browse files Browse the repository at this point in the history
  • Loading branch information
madeso committed May 18, 2020
1 parent 8f4c021 commit ac0fc79
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 ac0fc79

Please sign in to comment.