1
0
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:
kgv
2020-05-08 23:41:22 +03:00
committed by bugmaster
parent 4b59685af1
commit 158f2931a7
55 changed files with 670 additions and 1001 deletions

View File

@@ -102,6 +102,26 @@ Interface_Graph::Interface_Graph
theflags.Initialize(agraph.BitMap(),Standard_True);
}
Interface_Graph& Interface_Graph::operator= (const Interface_Graph& theOther)
{
themodel = theOther.Model();
thepresents = theOther.thepresents;
thesharings = theOther.SharingTable();
thestats.Nullify();
const Standard_Integer nb = theOther.NbStatuses();
if (nb != 0)
{
thestats = new TColStd_HArray1OfInteger(1, nb);
for (Standard_Integer i = 1; i <= nb; ++i)
{
thestats->SetValue (i, theOther.Status(i));
}
theflags.Initialize (theOther.BitMap(), Standard_True);
}
return *this;
}
void Interface_Graph::InitStats()
{
thestats = new TColStd_HArray1OfInteger(1,themodel->NbEntities()) ,

View File

@@ -87,6 +87,9 @@ public:
//! Remark that status are copied from <agraph>, but the other
//! lists (sharing/shared) are copied only if <copied> = True
Standard_EXPORT Interface_Graph(const Interface_Graph& agraph, const Standard_Boolean copied = Standard_False);
//! Assignment
Standard_EXPORT Interface_Graph& operator= (const Interface_Graph& theOther);
//! Erases data, making graph ready to rebegin from void
//! (also resets Shared lists redefinitions)

View File

@@ -97,7 +97,14 @@ public:
//! used when starting
Standard_EXPORT Interface_STAT(const Interface_STAT& other);
//! Assignment
Interface_STAT& operator= (const Interface_STAT& theOther)
{
theOther.Internals (thetitle, thetotal, thephnam, thephw, thephdeb,thephfin, thestw);
return *this;
}
//! Returns fields in once, without copying them, used for copy
//! when starting
Standard_EXPORT void Internals (Handle(TCollection_HAsciiString)& tit, Standard_Real& total, Handle(TColStd_HSequenceOfAsciiString)& phn, Handle(TColStd_HSequenceOfReal)& phw, Handle(TColStd_HSequenceOfInteger)& phdeb, Handle(TColStd_HSequenceOfInteger)& phfin, Handle(TColStd_HSequenceOfReal)& stw) const;