Salome HOME
Merge branch 'V8_4_BR'
[modules/smesh.git] / src / SMESH_I / SMESH_Gen_i.hxx
index e5bd4f95ddc4ebe46783068c5ce8b2e5f5b45112..7f3765e8da804950228a2ccc700adb6dda331a9a 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