mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-07-06 17:12:00 +08:00
0031455: Modeling Algorithms - useless pointer casts in BRepAlgoAPI classes
Useless casts are removed. Off-topic: corrected description of constructor of TCollection_HAsciiString class from TCollection_HExtendedString for the case when input string contains non-Ascii character.
This commit is contained in:
@@ -55,9 +55,7 @@ BRepAlgoAPI_Common::BRepAlgoAPI_Common(const TopoDS_Shape& S1,
|
||||
const TopoDS_Shape& S2)
|
||||
: BRepAlgoAPI_BooleanOperation(S1, S2, BOPAlgo_COMMON)
|
||||
{
|
||||
BRepAlgoAPI_BooleanOperation* pBO=
|
||||
(BRepAlgoAPI_BooleanOperation*) (void*) this;
|
||||
pBO->Build();
|
||||
Build();
|
||||
}
|
||||
//=======================================================================
|
||||
//function : BRepAlgoAPI_Common
|
||||
@@ -68,9 +66,7 @@ BRepAlgoAPI_Common::BRepAlgoAPI_Common(const TopoDS_Shape& S1,
|
||||
const BOPAlgo_PaveFiller& aDSF)
|
||||
: BRepAlgoAPI_BooleanOperation(S1, S2, aDSF, BOPAlgo_COMMON)
|
||||
{
|
||||
BRepAlgoAPI_BooleanOperation* pBO=
|
||||
(BRepAlgoAPI_BooleanOperation*) (void*) this;
|
||||
pBO->Build();
|
||||
Build();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user