avoid extra list copying

-    aRes = (*it).second;
+    return it->second;
This commit is contained in:
eap 2009-03-11 14:48:54 +00:00
parent 59b7f3d704
commit 015abb3cd3

View File

@ -1136,7 +1136,7 @@ std::list<const SMDS_FaceOfNodes*> StdMeshers_QuadToTriaAdaptor::GetTriangles
std::map< const SMDS_MeshElement*,
std::list<const SMDS_FaceOfNodes*> >::iterator it = myResMap.find(aFace);
if( it != myResMap.end() ) {
aRes = (*it).second;
return it->second;
}
return aRes;
}