mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-24 13:50:49 +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:
@@ -375,7 +375,7 @@ Handle(VrmlData_Geometry) VrmlData_ShapeConvert::triToIndexedFaceSet
|
||||
new VrmlData_Normal (myScene, 0L, nNodes, arrVec);
|
||||
myScene.AddNode (aNormalNode, Standard_False);
|
||||
aFaceSet->SetNormals (aNormalNode);
|
||||
return aFaceSet;
|
||||
return Handle(VrmlData_Geometry) (aFaceSet);
|
||||
}
|
||||
|
||||
Poly_Connect PC(theTri);
|
||||
@@ -449,7 +449,7 @@ Handle(VrmlData_Geometry) VrmlData_ShapeConvert::triToIndexedFaceSet
|
||||
}
|
||||
}
|
||||
|
||||
return aFaceSet;
|
||||
return Handle(VrmlData_Geometry) (aFaceSet);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
@@ -492,7 +492,7 @@ Handle(VrmlData_Geometry) VrmlData_ShapeConvert::polToIndexedLineSet
|
||||
myScene.AddNode (aCoordNode, Standard_False);
|
||||
aLineSet->SetCoordinates (aCoordNode);
|
||||
|
||||
return aLineSet;
|
||||
return Handle(VrmlData_Geometry) (aLineSet);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
|
Reference in New Issue
Block a user