Browse Source

possible inefficient checking for 'tlist' emptiness

escherstair 6 years ago
parent
commit
eb8479a95e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      code/X3D/X3DImporter.cpp

+ 1 - 1
code/X3D/X3DImporter.cpp

@@ -647,7 +647,7 @@ void X3DImporter::XML_ReadNode_GetAttrVal_AsArrCol4f(const int pAttrIdx, std::ve
 
 	XML_ReadNode_GetAttrVal_AsListCol4f(pAttrIdx, tlist);// read as list
 	// and copy to array
-	if(tlist.size() > 0)
+	if(!tlist.empty())
 	{
 		pValue.reserve(tlist.size());
         for ( std::list<aiColor4D>::iterator it = tlist.begin(); it != tlist.end(); ++it )