From: eap Date: Wed, 11 Mar 2009 14:48:54 +0000 (+0000) Subject: avoid extra list copying X-Git-Tag: V5_1_1rc2~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=015abb3cd377fec5374d511d893fa6e6efd679d4;p=modules%2Fsmesh.git avoid extra list copying - aRes = (*it).second; + return it->second; --- diff --git a/src/StdMeshers/StdMeshers_QuadToTriaAdaptor.cxx b/src/StdMeshers/StdMeshers_QuadToTriaAdaptor.cxx index 620bad81c..f40c32c02 100644 --- a/src/StdMeshers/StdMeshers_QuadToTriaAdaptor.cxx +++ b/src/StdMeshers/StdMeshers_QuadToTriaAdaptor.cxx @@ -1136,7 +1136,7 @@ std::list StdMeshers_QuadToTriaAdaptor::GetTriangles std::map< const SMDS_MeshElement*, std::list >::iterator it = myResMap.find(aFace); if( it != myResMap.end() ) { - aRes = (*it).second; + return it->second; } return aRes; }