]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
avoid extra list copying
authoreap <eap@opencascade.com>
Wed, 11 Mar 2009 14:48:54 +0000 (14:48 +0000)
committereap <eap@opencascade.com>
Wed, 11 Mar 2009 14:48:54 +0000 (14:48 +0000)
-    aRes = (*it).second;
+    return it->second;

src/StdMeshers/StdMeshers_QuadToTriaAdaptor.cxx

index 620bad81c2fd9e75f69f66ffc1613ae3b0351f0b..f40c32c02cd7e96c3bd101adfcd38ee331a0254d 100644 (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;
 }