Skip to content

Commit

Permalink
PrettyWriter constructor uninitialized member (Tencent#1654)
Browse files Browse the repository at this point in the history
  • Loading branch information
miloyip authored Mar 5, 2020
1 parent 2bed293 commit 563fe5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/rapidjson/prettywriter.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class PrettyWriter : public Writer<OutputStream, SourceEncoding, TargetEncoding,


explicit PrettyWriter(StackAllocator* allocator = 0, size_t levelDepth = Base::kDefaultLevelDepth) :
Base(allocator, levelDepth), indentChar_(' '), indentCharCount_(4) {}
Base(allocator, levelDepth), indentChar_(' '), indentCharCount_(4), formatOptions_(kFormatDefault) {}

#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
PrettyWriter(PrettyWriter&& rhs) :
Expand Down

0 comments on commit 563fe5b

Please sign in to comment.