Merge pull request #1439 from ylavic/schema_pointer_allocator

Use the allocator of the Schema for its Pointer.
This commit is contained in:
Milo Yip 2019-02-06 19:31:03 +08:00 committed by GitHub
commit 79a6dabd08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -409,7 +409,7 @@ public:
Schema(SchemaDocumentType* schemaDocument, const PointerType& p, const ValueType& value, const ValueType& document, AllocatorType* allocator) :
allocator_(allocator),
uri_(schemaDocument->GetURI(), *allocator),
pointer_(p),
pointer_(p, allocator),
typeless_(schemaDocument->GetTypeless()),
enum_(),
enumCount_(),