mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03: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();
|
||||
}
|
||||
|
||||
|
||||
|
@@ -56,9 +56,7 @@ BRepAlgoAPI_Cut::BRepAlgoAPI_Cut(const TopoDS_Shape& S1,
|
||||
:
|
||||
BRepAlgoAPI_BooleanOperation(S1, S2, BOPAlgo_CUT)
|
||||
{
|
||||
BRepAlgoAPI_BooleanOperation* pBO=
|
||||
(BRepAlgoAPI_BooleanOperation*) (void*) this;
|
||||
pBO->Build();
|
||||
Build();
|
||||
}
|
||||
//=======================================================================
|
||||
//function : BRepAlgoAPI_Cut
|
||||
@@ -72,7 +70,5 @@ BRepAlgoAPI_Cut::BRepAlgoAPI_Cut(const TopoDS_Shape& S1,
|
||||
BRepAlgoAPI_BooleanOperation(S1, S2, aDSF,
|
||||
(bFWD) ? BOPAlgo_CUT : BOPAlgo_CUT21)
|
||||
{
|
||||
BRepAlgoAPI_BooleanOperation* pBO=
|
||||
(BRepAlgoAPI_BooleanOperation*) (void*) this;
|
||||
pBO->Build();
|
||||
Build();
|
||||
}
|
||||
|
@@ -56,9 +56,7 @@ BRepAlgoAPI_Fuse::BRepAlgoAPI_Fuse(const TopoDS_Shape& S1,
|
||||
:
|
||||
BRepAlgoAPI_BooleanOperation(S1, S2, BOPAlgo_FUSE)
|
||||
{
|
||||
BRepAlgoAPI_BooleanOperation* pBO=
|
||||
(BRepAlgoAPI_BooleanOperation*) (void*) this;
|
||||
pBO->Build();
|
||||
Build();
|
||||
}
|
||||
//=======================================================================
|
||||
//function : BRepAlgoAPI_Fuse
|
||||
@@ -70,7 +68,5 @@ BRepAlgoAPI_Fuse::BRepAlgoAPI_Fuse(const TopoDS_Shape& S1,
|
||||
:
|
||||
BRepAlgoAPI_BooleanOperation(S1, S2, aDSF, BOPAlgo_FUSE)
|
||||
{
|
||||
BRepAlgoAPI_BooleanOperation* pBO=
|
||||
(BRepAlgoAPI_BooleanOperation*) (void*) this;
|
||||
pBO->Build();
|
||||
Build();
|
||||
}
|
||||
|
Reference in New Issue
Block a user