fix inefficient check for 'mNodeElement_List' emptiness

This commit is contained in:
escherstair
2019-08-29 10:29:24 +02:00
committed by GitHub
parent 0d17315166
commit ebb061d89c

View File

@@ -83,7 +83,7 @@ void AMFImporter::Clear()
mMaterial_Converted.clear();
mTexture_Converted.clear();
// Delete all elements
if(mNodeElement_List.size())
if(!mNodeElement_List.empty())
{
for(CAMFImporter_NodeElement* ne: mNodeElement_List) { delete ne; }