Skip to content

Commit 1a80382

Browse files
authored
Merge pull request Tencent#1720 from madeso/master
Fixes issue Tencent#1718
2 parents 8f4c021 + ac0fc79 commit 1a80382

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/rapidjson/writer.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,8 @@ class Writer {
283283
os_->Flush();
284284
}
285285

286+
static const size_t kDefaultLevelDepth = 32;
287+
286288
protected:
287289
//! Information for each nested level
288290
struct Level {
@@ -291,8 +293,6 @@ class Writer {
291293
bool inArray; //!< true if in array, otherwise in object
292294
};
293295

294-
static const size_t kDefaultLevelDepth = 32;
295-
296296
bool WriteNull() {
297297
PutReserve(*os_, 4);
298298
PutUnsafe(*os_, 'n'); PutUnsafe(*os_, 'u'); PutUnsafe(*os_, 'l'); PutUnsafe(*os_, 'l'); return true;

0 commit comments

Comments
 (0)