mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0031004: Coding - eliminate warnings issued by gcc 9.1.0
Fixed -Wrestrict warning within OSD::SetSignal(). Fixed -Wdeprecated-copy warning by adding missing counterpart in pair copy constructor / assignment operator or by removing trivial constructor. AdvApp2Var_Node, AdvApp2Var_Patch are now declared as Handle. AdvApp2Var_Iso is now passed by Handle. Disabled operator= for TDF_Transaction and TDF_IDFilter. Standard.cxx - fixed GCC version mischeck causing building failure with experimental GCC versions. TopOpeBRepDS_EXPORT.cxx - fixed -Wmaybe-uninitialized warnings.
This commit is contained in:
@@ -67,6 +67,14 @@ Standard_Boolean operator == (const Intf_SectionLine& Other) const
|
||||
//! Copies a SectionLine.
|
||||
Standard_EXPORT Intf_SectionLine(const Intf_SectionLine& Other);
|
||||
|
||||
//! Assignment
|
||||
Intf_SectionLine& operator= (const Intf_SectionLine& theOther)
|
||||
{
|
||||
//closed = theOther.closed; // not copied as in copy constructor
|
||||
myPoints = theOther.myPoints;
|
||||
return *this;
|
||||
}
|
||||
|
||||
//! Adds a point at the end of the SectionLine.
|
||||
Standard_EXPORT void Append (const Intf_SectionPoint& Pi);
|
||||
|
||||
|
@@ -31,20 +31,6 @@ Intf_TangentZone::Intf_TangentZone ()
|
||||
ParamOnFirstMax = ParamOnSecondMax = RealFirst();
|
||||
}
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : Intf_TangentZone
|
||||
//purpose : Copy
|
||||
//=======================================================================
|
||||
|
||||
Intf_TangentZone::Intf_TangentZone (const Intf_TangentZone& Other)
|
||||
{
|
||||
Result=Other.Result;
|
||||
ParamOnFirstMin = Other.ParamOnFirstMin;
|
||||
ParamOnFirstMax = Other.ParamOnFirstMax;
|
||||
ParamOnSecondMin = Other.ParamOnSecondMin;
|
||||
ParamOnSecondMax = Other.ParamOnSecondMax;
|
||||
}
|
||||
//=======================================================================
|
||||
//function : Append
|
||||
//purpose : Append the section point to the tangent zone.
|
||||
|
@@ -81,10 +81,7 @@ Standard_Boolean operator == (const Intf_TangentZone& Other) const
|
||||
|
||||
//! Builds an empty tangent zone.
|
||||
Standard_EXPORT Intf_TangentZone();
|
||||
|
||||
//! Copies a Tangent zone.
|
||||
Standard_EXPORT Intf_TangentZone(const Intf_TangentZone& Other);
|
||||
|
||||
|
||||
//! Adds a SectionPoint to the TangentZone.
|
||||
Standard_EXPORT void Append (const Intf_SectionPoint& Pi);
|
||||
|
||||
|
Reference in New Issue
Block a user