mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +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:
@@ -87,6 +87,16 @@ protected:
|
||||
|
||||
IntRes2d_Intersection(const IntRes2d_Intersection& Other);
|
||||
|
||||
//! Assignment
|
||||
IntRes2d_Intersection& operator= (const IntRes2d_Intersection& theOther)
|
||||
{
|
||||
done = theOther.done;
|
||||
reverse = theOther.reverse;
|
||||
lpnt = theOther.lpnt;
|
||||
lseg = theOther.lseg;
|
||||
return *this;
|
||||
}
|
||||
|
||||
//! Destructor is protected, for safe inheritance
|
||||
~IntRes2d_Intersection () {}
|
||||
|
||||
@@ -104,18 +114,12 @@ protected:
|
||||
|
||||
Standard_Boolean ReversedParameters() const;
|
||||
|
||||
protected:
|
||||
|
||||
Standard_Boolean done;
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
Standard_Boolean reverse;
|
||||
IntRes2d_SequenceOfIntersectionPoint lpnt;
|
||||
IntRes2d_SequenceOfIntersectionSegment lseg;
|
||||
|
||||
Standard_Boolean done;
|
||||
Standard_Boolean reverse;
|
||||
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user