mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-08 14:17:06 +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:
@@ -51,6 +51,25 @@ BOPTools_Set::BOPTools_Set
|
||||
mySum=0;
|
||||
myUpper=432123;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : BOPTools_Set
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
BOPTools_Set::BOPTools_Set (const BOPTools_Set& theOther)
|
||||
: myAllocator(theOther.myAllocator),
|
||||
myShape (theOther.myShape),
|
||||
myNbShapes (theOther.myNbShapes),
|
||||
mySum (theOther.mySum),
|
||||
myUpper (theOther.myUpper)
|
||||
{
|
||||
for (TopTools_ListIteratorOfListOfShape aIt (theOther.myShapes); aIt.More(); aIt.Next())
|
||||
{
|
||||
const TopoDS_Shape& aShape = aIt.Value();
|
||||
myShapes.Append (aShape);
|
||||
}
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function :~
|
||||
//purpose :
|
||||
|
@@ -40,7 +40,10 @@ public:
|
||||
Standard_EXPORT virtual ~BOPTools_Set();
|
||||
|
||||
Standard_EXPORT BOPTools_Set(const Handle(NCollection_BaseAllocator)& theAllocator);
|
||||
|
||||
|
||||
//! Copy constructor.
|
||||
Standard_EXPORT BOPTools_Set (const BOPTools_Set& theOther);
|
||||
|
||||
Standard_EXPORT BOPTools_Set& Assign (const BOPTools_Set& Other);
|
||||
BOPTools_Set& operator = (const BOPTools_Set& Other)
|
||||
{
|
||||
|
Reference in New Issue
Block a user