1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-04 18:06:22 +03:00

0031020: Coding - invalid inline usage in BRepBlend_AppSurface

BRepBlend_AppSurface and some other classes have been corrected to avoid inlining member functions in .cxx code.
This commit is contained in:
msv 2019-10-01 23:06:35 +03:00 committed by apn
parent 8ba3d978db
commit 746cb7c328
6 changed files with 14 additions and 15 deletions

View File

@ -126,8 +126,8 @@ Standard_Real BRepBlend_AppSurface::TolCurveOnSurf(const Standard_Integer Index)
return approx.TolCurveOnSurf(Index);
}
inline void BRepBlend_AppSurface::TolReached (Standard_Real& Tol3d,
Standard_Real& Tol2d) const
void BRepBlend_AppSurface::TolReached (Standard_Real& Tol3d,
Standard_Real& Tol2d) const
{
Tol3d = approx.MaxErrorOnSurf();
Tol2d = 0;

View File

@ -1224,9 +1224,9 @@ Standard_Boolean BRepMesh_Delaun::checkIntersection(
//function : addTriangle
//purpose : Add a triangle based on the given oriented edges into mesh
//=======================================================================
inline void BRepMesh_Delaun::addTriangle( const Standard_Integer (&theEdgesId)[3],
const Standard_Boolean (&theEdgesOri)[3],
const Standard_Integer (&theNodesId)[3] )
void BRepMesh_Delaun::addTriangle( const Standard_Integer (&theEdgesId)[3],
const Standard_Boolean (&theEdgesOri)[3],
const Standard_Integer (&theNodesId)[3] )
{
Standard_Integer aNewTriangleId =
myMeshData->AddElement(BRepMesh_Triangle(theEdgesId,
@ -1890,7 +1890,7 @@ void BRepMesh_Delaun::meshPolygon(IMeshData::SequenceOfInteger& thePolygon,
//function : meshElementaryPolygon
//purpose : Triangulation of closed polygon containing only three edges.
//=======================================================================
inline Standard_Boolean BRepMesh_Delaun::meshElementaryPolygon(
Standard_Boolean BRepMesh_Delaun::meshElementaryPolygon(
const IMeshData::SequenceOfInteger& thePolygon)
{
Standard_Integer aPolyLen = thePolygon.Length();

View File

@ -80,7 +80,7 @@ Standard_Boolean MeshVS_DummySensitiveEntity::HasInitLocation() const
//function : InvInitLocation
//purpose :
//=======================================================================
inline gp_GTrsf MeshVS_DummySensitiveEntity::InvInitLocation() const
gp_GTrsf MeshVS_DummySensitiveEntity::InvInitLocation() const
{
return gp_GTrsf();
}

View File

@ -20,12 +20,6 @@
#include <Standard_OutOfRange.hxx>
#include <Standard_DomainError.hxx>
inline void NCollection_BaseSequence::Nullify ()
{
myFirstItem = myLastItem = myCurrentItem = NULL;
myCurrentIndex = mySize = 0;
}
//=======================================================================
//function : ClearSeq
//purpose : removes all items from the current sequence

View File

@ -163,7 +163,12 @@ public:
//
Standard_EXPORT NCollection_BaseSequence
(const NCollection_BaseSequence& Other);
inline void Nullify ();
void Nullify()
{
myFirstItem = myLastItem = myCurrentItem = NULL;
myCurrentIndex = mySize = 0;
}
friend class Iterator;
};

View File

@ -862,7 +862,7 @@ Standard_Boolean ShapeFix_Edge::FixSameParameter(const TopoDS_Edge& edge,
//purpose :
//=======================================================================
inline Handle(ShapeBuild_ReShape) ShapeFix_Edge::Context() const
Handle(ShapeBuild_ReShape) ShapeFix_Edge::Context() const
{
return myContext;
}