From 6462277df0568a8ff09dee6babe4a46d8efa2cea Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 22 Jan 2010 11:29:51 +0000 Subject: [PATCH] shorten code --- src/SMESH/SMESH_subMesh.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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; } -- 2.39.2