diff options
| author | Josh Ferrell <josh@vector35.com> | 2020-08-24 21:58:03 -0400 |
|---|---|---|
| committer | Josh Ferrell <josh@vector35.com> | 2020-10-28 18:53:24 -0400 |
| commit | 106a8a60c4f88cb45e3120544f05fb2ac48e6b28 (patch) | |
| tree | e5a71b6d91bbdfa3f64cdd2cbbd75abd5fe5d24e /rapidjson/allocators.h | |
| parent | be44532917b2458bb81ba838bce0a0d045957909 (diff) | |
rapidjson serialization
Diffstat (limited to 'rapidjson/allocators.h')
| -rw-r--r-- | rapidjson/allocators.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/rapidjson/allocators.h b/rapidjson/allocators.h index 98affe03..68fc35d1 100644 --- a/rapidjson/allocators.h +++ b/rapidjson/allocators.h @@ -64,19 +64,19 @@ public: static const bool kNeedFree = true; void* Malloc(size_t size) { if (size) // behavior of malloc(0) is implementation defined. - return std::malloc(size); + return je_malloc(size); else return NULL; // standardize to returning NULL. } void* Realloc(void* originalPtr, size_t originalSize, size_t newSize) { (void)originalSize; if (newSize == 0) { - std::free(originalPtr); + je_free(originalPtr); return NULL; } - return std::realloc(originalPtr, newSize); + return je_realloc(originalPtr, newSize); } - static void Free(void *ptr) { std::free(ptr); } + static void Free(void *ptr) { je_free(ptr); } }; /////////////////////////////////////////////////////////////////////////////// |
