X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FSMESH_I%2FSMESH_Gen_i.hxx;h=7f3765e8da804950228a2ccc700adb6dda331a9a;hp=e5bd4f95ddc4ebe46783068c5ce8b2e5f5b45112;hb=d8bc11015235c68631ac85d7e8cf278edc9809d1;hpb=7a713be33b27d6a8c77f983460f0e97e52c6ff7c diff --git a/src/SMESH_I/SMESH_Gen_i.hxx b/src/SMESH_I/SMESH_Gen_i.hxx index e5bd4f95d..7f3765e8d 100644 --- a/src/SMESH_I/SMESH_Gen_i.hxx +++ b/src/SMESH_I/SMESH_Gen_i.hxx @@ -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