Salome HOME
Merge V9_dev branch into master
[modules/smesh.git] / src / SMESH_I / SMESH_Gen_i.hxx
index a0667465611147aab0f9b9af9bea00c3f6201736..1cc0ae4aa44d5172994d06c617c222c5d1064b1a 100644 (file)
@@ -117,10 +117,7 @@ private:
   // get next free object identifier
   int getNextId()
   {
-    int id = 1;
-    while( mapIdToIOR.IsBound( id ) )
-      id++;
-    return id;
+    return mapIdToIOR.Extent() + 1;
   }
 
   TInt2StringMap mapIdToIOR; // persistent-to-transient map