Make logic more clearly
This commit is contained in:
parent
0d9a303991
commit
366113e72e
@ -2365,7 +2365,7 @@ PUGI__NS_BEGIN
|
||||
if (header & header_mask) alloc->deallocate_string(dest);
|
||||
|
||||
// mark the string as not allocated
|
||||
dest = !shallow_copy ? nullptr : const_cast<String>(source);
|
||||
dest = source_length ? nullptr : const_cast<String>(source);
|
||||
header &= ~header_mask;
|
||||
|
||||
return true;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user