From: eap Date: Fri, 22 Jan 2010 11:29:51 +0000 (+0000) Subject: shorten code X-Git-Tag: PARAVIS_29012010~14 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6462277df0568a8ff09dee6babe4a46d8efa2cea;p=modules%2Fsmesh.git shorten code --- diff --git a/src/SMESH/SMESH_subMesh.cxx b/src/SMESH/SMESH_subMesh.cxx index b8615dcc2..5fba40c2b 100644 --- a/src/SMESH/SMESH_subMesh.cxx +++ b/src/SMESH/SMESH_subMesh.cxx @@ -1598,11 +1598,9 @@ bool SMESH_subMesh::Evaluate(MapShapeNbElems& aResMap) bool ret = true; if (_subShape.ShapeType() == TopAbs_VERTEX) { - std::vector aVec(SMDSEntity_Last); - for(int i= SMDSEntity_Node; i < SMDSEntity_Last; i++) - aVec[i] = 0; + vector aVec(SMDSEntity_Last,0); aVec[SMDSEntity_Node] = 1; - aResMap.insert(std::make_pair(this,aVec)); + aResMap.insert(make_pair(this,aVec)); return ret; }