]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
shorten code
authoreap <eap@opencascade.com>
Fri, 22 Jan 2010 11:37:48 +0000 (11:37 +0000)
committereap <eap@opencascade.com>
Fri, 22 Jan 2010 11:37:48 +0000 (11:37 +0000)
src/StdMeshers/StdMeshers_Regular_1D.cxx

index c3e86a98d8607b1622cb8cf38d71790c07e38aa5..477b809f9b5628e2c4ab0918061bfba28900d661 100644 (file)
@@ -1048,8 +1048,7 @@ bool StdMeshers_Regular_1D::Evaluate(SMESH_Mesh & theMesh,
   ASSERT(!VFirst.IsNull());
   ASSERT(!VLast.IsNull());
 
-  std::vector<int> aVec(SMDSEntity_Last);
-  for(int i=SMDSEntity_Node; i<SMDSEntity_Last; i++) aVec[i] = 0;
+  std::vector<int> aVec(SMDSEntity_Last,0);
 
   if (!Curve.IsNull()) {
     list< double > params;