Update pugixml.cpp

This commit is contained in:
deal 2021-12-24 01:54:39 +08:00 committed by GitHub
parent d3a8b86f17
commit 3ceb703935
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2409,7 +2409,7 @@ PUGI__NS_BEGIN
if (header & header_mask) alloc->deallocate_string(dest);
// mark the string as not allocated
dest = source_length == 0 ? NULL : const_cast<String>(source);
dest = source_length == 0 ? NULL : const_cast<char_t*>(source);
header &= ~header_mask;
// mark dest as shared to avoid reuse document buffer memory