From 98b66e3c5ab92fd63ea2663d989dd1a933f587c5 Mon Sep 17 00:00:00 2001 From: miloyip Date: Sun, 10 May 2015 23:26:58 +0800 Subject: [PATCH] Change Document::ParseStream() to use stack allocator for Reader --- include/rapidjson/document.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/rapidjson/document.h b/include/rapidjson/document.h index 7386773..aab489c 100644 --- a/include/rapidjson/document.h +++ b/include/rapidjson/document.h @@ -1741,7 +1741,7 @@ public: template GenericDocument& ParseStream(InputStream& is) { ValueType::SetNull(); // Remove existing root if exist - GenericReader reader(&GetAllocator()); + GenericReader reader(&stack_.GetAllocator()); ClearStackOnExit scope(*this); parseResult_ = reader.template Parse(is, *this); if (parseResult_) {