mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0030448: Coding - add typo detection to derivation creation methods using Standard_NODISCARD attribute
Added macro Standard_NODISCARD equivalent to C++17 attribute [[nodiscard]] for compilers that support this. Using Standard_NODISCARD macro for methods that create new object in gp, math, Geom, Bnd packages. Marked equivalent operators with Standard_NODISCARD, if they are defined close to relevant methods. Corrected code where warnings on unused result of calls to methods creating new objects are generated. In most cases it looks like spelling errors (e.g. Normalised() instead of Normalise())
This commit is contained in:
@@ -550,12 +550,11 @@ TopoDS_Vertex ShapeAnalysis_TransferParametersProj::CopyNMVertex (const TopoDS_V
|
||||
Handle(BRep_GCurve) fromGC = Handle(BRep_GCurve)::DownCast(fromitcr.Value());
|
||||
if ( fromGC.IsNull() || !fromGC->IsCurveOnSurface()) continue;
|
||||
|
||||
TopLoc_Location aL = fromGC->Location();
|
||||
aL.Predivided(theV.Location());
|
||||
TopLoc_Location aL = fromGC->Location().Predivided(theV.Location());
|
||||
Handle(Geom_Surface) surface1 = fromGC->Surface();
|
||||
Handle(Geom2d_Curve) ac2d1 = fromGC->PCurve();
|
||||
if (pr->IsPointOnCurveOnSurface(ac2d1,surface1,aL)) {
|
||||
found = Standard_True;
|
||||
found = Standard_True;
|
||||
if(!hasRepr) {
|
||||
aOldPar = pr->Parameter();
|
||||
}
|
||||
|
Reference in New Issue
Block a user