From 015abb3cd377fec5374d511d893fa6e6efd679d4 Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 11 Mar 2009 14:48:54 +0000 Subject: [PATCH] avoid extra list copying - aRes = (*it).second; + return it->second; --- src/StdMeshers/StdMeshers_QuadToTriaAdaptor.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }