Reduced code size

This commit is contained in:
Benoit Blanchon
2015-05-31 14:25:01 +02:00
parent 1b5be892b9
commit 0aded2a798
3 changed files with 1 additions and 5 deletions

View File

@@ -14,6 +14,7 @@ namespace Internals {
class JsonBufferAllocated {
public:
void *operator new(size_t n, JsonBuffer *jsonBuffer) throw() {
if (!jsonBuffer) return NULL;
return jsonBuffer->alloc(n);
}