mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-24 16:30:34 +05:00
avoid extra list copying
- aRes = (*it).second; + return it->second;
This commit is contained in:
parent
59b7f3d704
commit
015abb3cd3
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user