fix inefficient check for 'mNodeElement_List' emptiness

pull/2628/head
escherstair 2019-08-29 10:29:24 +02:00 committed by GitHub
parent 0d17315166
commit ebb061d89c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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