1
0
mirror of https://github.com/leethomason/tinyxml2.git synced 2026-07-28 14:42:59 +04:00

Suppress C6011 code analysis false positive warning

This commit is contained in:
Dmitry-Me
2017-03-03 15:45:51 +03:00
parent 92c0ef327f
commit 7221b49fea
+1
View File
@@ -1838,6 +1838,7 @@ XMLAttribute* XMLElement::CreateAttribute()
{
TIXMLASSERT( sizeof( XMLAttribute ) == _document->_attributePool.ItemSize() );
XMLAttribute* attrib = new (_document->_attributePool.Alloc() ) XMLAttribute();
TIXMLASSERT( attrib );
attrib->_memPool = &_document->_attributePool;
attrib->_memPool->SetTracked();
return attrib;