]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
make IndexToShape() const
authoreap <eap@opencascade.com>
Thu, 9 Mar 2006 10:54:14 +0000 (10:54 +0000)
committereap <eap@opencascade.com>
Thu, 9 Mar 2006 10:54:14 +0000 (10:54 +0000)
src/SMESHDS/SMESHDS_Mesh.cxx
src/SMESHDS/SMESHDS_Mesh.hxx

index 15c1fe44ac9ad394389180d73574bd2db0703944..dc048b281f38e5b5d108f46b580cb21cd8ba9b2e 100644 (file)
@@ -1108,7 +1108,7 @@ int SMESHDS_Mesh::AddCompoundSubmesh(const TopoDS_Shape& S,
 //function : IndexToShape
 //purpose  : 
 //=======================================================================
-TopoDS_Shape SMESHDS_Mesh::IndexToShape(int ShapeIndex)
+const TopoDS_Shape& SMESHDS_Mesh::IndexToShape(int ShapeIndex) const
 {
        return myIndexToShape.FindKey(ShapeIndex);
 }
index fd79529f8882a4c50152758fe7bfd792797fe4ef..b5aca383329b78ae293332696781d30c92f7f4a5 100644 (file)
@@ -432,7 +432,7 @@ public:
   SMESHDS_Script * GetScript();
   void ClearScript();
   int ShapeToIndex(const TopoDS_Shape & aShape) const;
-  TopoDS_Shape IndexToShape(int ShapeIndex);
+  const TopoDS_Shape& IndexToShape(int ShapeIndex) const;
 
   SMESHDS_SubMesh * NewSubMesh(int Index);
   int AddCompoundSubmesh(const TopoDS_Shape& S, TopAbs_ShapeEnum type = TopAbs_SHAPE);