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.
const TopoDS_Shape& S2)
: BRepAlgoAPI_BooleanOperation(S1, S2, BOPAlgo_COMMON)
{
- BRepAlgoAPI_BooleanOperation* pBO=
- (BRepAlgoAPI_BooleanOperation*) (void*) this;
- pBO->Build();
+ Build();
}
//=======================================================================
//function : BRepAlgoAPI_Common
const BOPAlgo_PaveFiller& aDSF)
: BRepAlgoAPI_BooleanOperation(S1, S2, aDSF, BOPAlgo_COMMON)
{
- BRepAlgoAPI_BooleanOperation* pBO=
- (BRepAlgoAPI_BooleanOperation*) (void*) this;
- pBO->Build();
+ Build();
}
:
BRepAlgoAPI_BooleanOperation(S1, S2, BOPAlgo_CUT)
{
- BRepAlgoAPI_BooleanOperation* pBO=
- (BRepAlgoAPI_BooleanOperation*) (void*) this;
- pBO->Build();
+ Build();
}
//=======================================================================
//function : BRepAlgoAPI_Cut
BRepAlgoAPI_BooleanOperation(S1, S2, aDSF,
(bFWD) ? BOPAlgo_CUT : BOPAlgo_CUT21)
{
- BRepAlgoAPI_BooleanOperation* pBO=
- (BRepAlgoAPI_BooleanOperation*) (void*) this;
- pBO->Build();
+ Build();
}
:
BRepAlgoAPI_BooleanOperation(S1, S2, BOPAlgo_FUSE)
{
- BRepAlgoAPI_BooleanOperation* pBO=
- (BRepAlgoAPI_BooleanOperation*) (void*) this;
- pBO->Build();
+ Build();
}
//=======================================================================
//function : BRepAlgoAPI_Fuse
:
BRepAlgoAPI_BooleanOperation(S1, S2, aDSF, BOPAlgo_FUSE)
{
- BRepAlgoAPI_BooleanOperation* pBO=
- (BRepAlgoAPI_BooleanOperation*) (void*) this;
- pBO->Build();
+ Build();
}
//! Initializes a HAsciiString with a real value
Standard_EXPORT TCollection_HAsciiString(const Standard_Real value);
- //! Initializes a HAsciiString with a HAsciiString.
+ //! Initializes a HAsciiString with a AsciiString.
Standard_EXPORT TCollection_HAsciiString(const TCollection_AsciiString& aString);
//! Initializes a HAsciiString with a HAsciiString.
Standard_EXPORT TCollection_HAsciiString(const Handle(TCollection_HAsciiString)& aString);
- //! Initializes a HAsciiString with a HAsciiString.
+ //! Initializes a HAsciiString with a HExtendedString.
//! If replaceNonAscii is non-null charecter, it will be used
//! in place of any non-ascii character found in the source string.
- //! Otherwise, raises OutOfRange exception if at least one character
- //! in the source string is not in the "Ascii range".
+ //! Otherwise, creates UTF-8 unicode string.
Standard_EXPORT TCollection_HAsciiString(const Handle(TCollection_HExtendedString)& aString, const Standard_Character replaceNonAscii);
//! Appends <other> to me.