diff options
author | Andrey Glebov <andrey.glebov@raa-st.com> | 2016-12-21 14:03:53 +0300 |
---|---|---|
committer | Andrey Glebov <andrey.glebov@raa-st.com> | 2016-12-21 14:03:53 +0300 |
commit | 41ceb8624f2fb46fe5e62b7d2cce471c17db7a5f (patch) | |
tree | 21a33a5cbb3de87173b1453e7c6a264f2bda4cc2 /include/rapidjson/document.h | |
parent | 3f120caeef7362ae0b4f219c5c6cafb5d074d698 (diff) |
- replaced RAPIDJSON_NEW with C++98 compatible version
Diffstat (limited to 'include/rapidjson/document.h')
-rw-r--r-- | include/rapidjson/document.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/rapidjson/document.h b/include/rapidjson/document.h index 5822acce..3873b99b 100644 --- a/include/rapidjson/document.h +++ b/include/rapidjson/document.h @@ -2088,7 +2088,7 @@ public: GenericValue<Encoding, Allocator>(type), allocator_(allocator), ownAllocator_(0), stack_(stackAllocator, stackCapacity), parseResult_() { if (!allocator_) - ownAllocator_ = allocator_ = RAPIDJSON_NEW(Allocator); + ownAllocator_ = allocator_ = RAPIDJSON_NEW(Allocator)(); } //! Constructor @@ -2101,7 +2101,7 @@ public: allocator_(allocator), ownAllocator_(0), stack_(stackAllocator, stackCapacity), parseResult_() { if (!allocator_) - ownAllocator_ = allocator_ = RAPIDJSON_NEW(Allocator); + ownAllocator_ = allocator_ = RAPIDJSON_NEW(Allocator)(); } #if RAPIDJSON_HAS_CXX11_RVALUE_REFS |