1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0024023: Revamp the OCCT Handle - gcc and clang

Adaptations for compiling with GCC 4.7 and 4.8:
- Construction semantics is used for Handle objects being initialized by const Handle objects of derived type, to avoid overload resolution error in GCC 4.7.
- Missing includes added.
- Fixed bugs related to misuse of direct casts of handle.
- Eliminate CLang warnings on uninitialized and unused variables, functions, and expressions
This commit is contained in:
abv
2015-07-03 11:31:43 +03:00
parent caaeed1b91
commit 5b111128de
72 changed files with 250 additions and 431 deletions

View File

@@ -108,9 +108,10 @@ IGESBasic_Group::IGESBasic_Group () { InitTypeAndForm(402,1); }
(const Standard_Integer Index) const
{ return theEntities->Value(Index); }
Handle(Standard_Transient) IGESBasic_Group::Value
(const Standard_Integer Index) const
{ return theEntities->Value(Index); }
Handle(Standard_Transient) IGESBasic_Group::Value (const Standard_Integer Index) const
{
return Handle(Standard_Transient) (theEntities->Value(Index));
}
void IGESBasic_Group::SetValue
(const Standard_Integer Index, const Handle(IGESData_IGESEntity)& ent)

View File

@@ -61,8 +61,7 @@ IGESBasic_SubfigureDef::IGESBasic_SubfigureDef () { }
return theAssocEntities->Value(Index);
}
Handle(Standard_Transient) IGESBasic_SubfigureDef::Value
(const Standard_Integer Index) const
Handle(Standard_Transient) IGESBasic_SubfigureDef::Value (const Standard_Integer Index) const
{
return theAssocEntities->Value(Index);
return Handle(Standard_Transient) (theAssocEntities->Value(Index));
}