Skip to content

Commit

Permalink
Change Document::ParseStream() to use stack allocator for Reader
Browse files Browse the repository at this point in the history
  • Loading branch information
miloyip committed May 14, 2015
1 parent 0691502 commit ffbe386
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/rapidjson/document.h
Original file line number Diff line number Diff line change
Expand Up @@ -1741,7 +1741,7 @@ class GenericDocument : public GenericValue<Encoding, Allocator> {
template <unsigned parseFlags, typename SourceEncoding, typename InputStream>
GenericDocument& ParseStream(InputStream& is) {
ValueType::SetNull(); // Remove existing root if exist
GenericReader<SourceEncoding, Encoding, Allocator> reader(&GetAllocator());
GenericReader<SourceEncoding, Encoding, StackAllocator> reader(&stack_.GetAllocator());
ClearStackOnExit scope(*this);
parseResult_ = reader.template Parse<parseFlags>(is, *this);
if (parseResult_) {
Expand Down

0 comments on commit ffbe386

Please sign in to comment.