1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-05 18:16:23 +03:00

0024893: CLang warnings -Wlogical-not-parentheses for gce_Done comparisons

Incorrect comparison in condition within RiseIf macro fixed
This commit is contained in:
abv 2014-05-03 08:58:18 +04:00 committed by bugmaster
parent 7ccd27ca04
commit 82fc327c7d
39 changed files with 39 additions and 39 deletions

View File

@ -158,7 +158,7 @@ GC_MakeArcOfCircle::GC_MakeArcOfCircle(const gp_Circ& Circ ,
//=======================================================================
const Handle(Geom_TrimmedCurve)& GC_MakeArcOfCircle::Value() const
{
StdFail_NotDone_Raise_if(!TheError == gce_Done,"");
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return TheArc;
}
//=======================================================================

View File

@ -54,7 +54,7 @@ GC_MakeArcOfEllipse::GC_MakeArcOfEllipse(const gp_Elips& Elips ,
const Handle(Geom_TrimmedCurve)& GC_MakeArcOfEllipse::Value() const
{
StdFail_NotDone_Raise_if(!TheError == gce_Done,"");
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return TheArc;
}

View File

@ -55,7 +55,7 @@ GC_MakeArcOfHyperbola::GC_MakeArcOfHyperbola(const gp_Hypr& Hypr ,
const Handle(Geom_TrimmedCurve)& GC_MakeArcOfHyperbola::Value() const
{
StdFail_NotDone_Raise_if(!TheError == gce_Done,"");
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return TheArc;
}

View File

@ -54,7 +54,7 @@ GC_MakeArcOfParabola::GC_MakeArcOfParabola(const gp_Parab& Parab ,
const Handle(Geom_TrimmedCurve)& GC_MakeArcOfParabola::Value() const
{
StdFail_NotDone_Raise_if(!TheError == gce_Done,"");
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return TheArc;
}

View File

@ -97,7 +97,7 @@ GC_MakeCircle::GC_MakeCircle(const gp_Ax1& Axis ,
const Handle(Geom_Circle)& GC_MakeCircle::Value() const
{
StdFail_NotDone_Raise_if(!TheError == gce_Done,"");
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return TheCircle;
}

View File

@ -105,7 +105,7 @@ GC_MakeConicalSurface::GC_MakeConicalSurface(const gp_Pnt& P1 ,
const Handle(Geom_ConicalSurface)& GC_MakeConicalSurface::Value() const
{
StdFail_NotDone_Raise_if(!TheError == gce_Done,"");
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return TheCone;
}

View File

@ -98,7 +98,7 @@ GC_MakeCylindricalSurface::GC_MakeCylindricalSurface(const gp_Cylinder& Cyl ,
const Handle(Geom_CylindricalSurface)&
GC_MakeCylindricalSurface::Value() const
{
StdFail_NotDone_Raise_if(!TheError == gce_Done,"");
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return TheCylinder;
}

View File

@ -48,7 +48,7 @@ GC_MakeEllipse::GC_MakeEllipse(const gp_Pnt& S1 ,
const Handle(Geom_Ellipse)& GC_MakeEllipse::Value() const
{
StdFail_NotDone_Raise_if(!TheError == gce_Done,"");
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return TheEllipse;
}

View File

@ -47,7 +47,7 @@ GC_MakeHyperbola::GC_MakeHyperbola(const gp_Pnt& S1 ,
const Handle(Geom_Hyperbola)& GC_MakeHyperbola::Value() const
{
StdFail_NotDone_Raise_if(!TheError == gce_Done,"");
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return TheHyperbola;
}

View File

@ -63,7 +63,7 @@ GC_MakeLine::GC_MakeLine(const gp_Lin& Lin ,
const Handle(Geom_Line)& GC_MakeLine::Value() const
{
StdFail_NotDone_Raise_if(!TheError == gce_Done,"");
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return TheLine;
}

View File

@ -119,7 +119,7 @@ GC_MakePlane::GC_MakePlane(const gp_Ax1& Axis ) {
const Handle(Geom_Plane)& GC_MakePlane::Value() const
{
StdFail_NotDone_Raise_if(!TheError == gce_Done,"");
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return ThePlane;
}

View File

@ -61,7 +61,7 @@ GC_MakeSegment::GC_MakeSegment(const gp_Lin& Line ,
const Handle(Geom_TrimmedCurve)& GC_MakeSegment::Value() const
{
StdFail_NotDone_Raise_if(!TheError == gce_Done,"");
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return TheSegment;
}

View File

@ -73,7 +73,7 @@ GC_MakeTrimmedCone::GC_MakeTrimmedCone(const gp_Pnt& P1 ,
const Handle(Geom_RectangularTrimmedSurface)& GC_MakeTrimmedCone::
Value() const
{
StdFail_NotDone_Raise_if(!TheError == gce_Done,"");
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return TheCone;
}

View File

@ -82,7 +82,7 @@ GC_MakeTrimmedCylinder::GC_MakeTrimmedCylinder(const gp_Cylinder& , // Cyl,
const Handle(Geom_RectangularTrimmedSurface)& GC_MakeTrimmedCylinder::
Value() const
{
StdFail_NotDone_Raise_if(!TheError == gce_Done,"");
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return TheCyl;
}

View File

@ -111,7 +111,7 @@ GCE2d_MakeArcOfCircle::GCE2d_MakeArcOfCircle(const gp_Circ2d& Circ ,
const Handle(Geom2d_TrimmedCurve)& GCE2d_MakeArcOfCircle::Value() const
{
StdFail_NotDone_Raise_if(!TheError == gce_Done,"");
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return TheArc;
}

View File

@ -54,7 +54,7 @@ GCE2d_MakeArcOfEllipse::GCE2d_MakeArcOfEllipse(const gp_Elips2d& Elips ,
const Handle(Geom2d_TrimmedCurve)& GCE2d_MakeArcOfEllipse::Value() const
{
StdFail_NotDone_Raise_if(!TheError == gce_Done,"");
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return TheArc;
}

View File

@ -56,7 +56,7 @@ GCE2d_MakeArcOfHyperbola::
const Handle(Geom2d_TrimmedCurve)& GCE2d_MakeArcOfHyperbola::Value() const
{
StdFail_NotDone_Raise_if(!TheError == gce_Done,"");
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return TheArc;
}

View File

@ -55,7 +55,7 @@ GCE2d_MakeArcOfParabola::
const Handle(Geom2d_TrimmedCurve)& GCE2d_MakeArcOfParabola::Value() const
{
StdFail_NotDone_Raise_if(!TheError == gce_Done,"");
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return TheArc;
}

View File

@ -100,7 +100,7 @@ GCE2d_MakeCircle::GCE2d_MakeCircle(const gp_Pnt2d& Center ,
const Handle(Geom2d_Circle)& GCE2d_MakeCircle::Value() const
{
StdFail_NotDone_Raise_if(!TheError == gce_Done,"");
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return TheCircle;
}

View File

@ -59,7 +59,7 @@ GCE2d_MakeEllipse::GCE2d_MakeEllipse(const gp_Pnt2d& S1 ,
const Handle(Geom2d_Ellipse)& GCE2d_MakeEllipse::Value() const
{
StdFail_NotDone_Raise_if(!TheError == gce_Done,"");
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return TheEllipse;
}

View File

@ -59,7 +59,7 @@ GCE2d_MakeHyperbola::GCE2d_MakeHyperbola(const gp_Pnt2d& S1 ,
const Handle(Geom2d_Hyperbola)& GCE2d_MakeHyperbola::Value() const
{
StdFail_NotDone_Raise_if(!TheError == gce_Done,"");
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return TheHyperbola;
}

View File

@ -73,7 +73,7 @@ GCE2d_MakeLine::GCE2d_MakeLine(const gp_Lin2d& Lin ,
const Handle(Geom2d_Line)& GCE2d_MakeLine::Value() const
{
StdFail_NotDone_Raise_if(!TheError == gce_Done,"");
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return TheLine;
}

View File

@ -74,7 +74,7 @@ GCE2d_MakeParabola::GCE2d_MakeParabola(const gp_Pnt2d& S1 ,
const Handle(Geom2d_Parabola)& GCE2d_MakeParabola::Value() const
{
StdFail_NotDone_Raise_if(!TheError == gce_Done,"");
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return TheParabola;
}

View File

@ -77,7 +77,7 @@ GCE2d_MakeSegment::GCE2d_MakeSegment(const gp_Lin2d& Line ,
const Handle(Geom2d_TrimmedCurve)& GCE2d_MakeSegment::Value() const
{
StdFail_NotDone_Raise_if(!TheError == gce_Done,"");
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return TheSegment;
}

View File

@ -338,7 +338,7 @@ gce_MakeCirc::gce_MakeCirc(const gp_Circ& Circ ,
//=======================================================================
const gp_Circ& gce_MakeCirc::Value() const
{
StdFail_NotDone_Raise_if(!TheError == gce_Done,"");
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return TheCirc;
}
//=======================================================================

View File

@ -202,7 +202,7 @@ gce_MakeCirc2d::gce_MakeCirc2d(const gp_Circ2d& Circ ,
const gp_Circ2d& gce_MakeCirc2d::Value() const
{
StdFail_NotDone_Raise_if(!TheError == gce_Done,"");
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return TheCirc2d;
}

View File

@ -198,7 +198,7 @@ gce_MakeCone::gce_MakeCone(const gp_Pnt& P1 ,
const gp_Cone& gce_MakeCone::Value() const
{
StdFail_NotDone_Raise_if(!TheError == gce_Done,"");
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return TheCone;
}

View File

@ -126,7 +126,7 @@ gce_MakeCylinder::gce_MakeCylinder(const gp_Cylinder& Cyl ,
const gp_Cylinder& gce_MakeCylinder::Value() const
{
StdFail_NotDone_Raise_if(!TheError == gce_Done,"");
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return TheCylinder;
}

View File

@ -63,7 +63,7 @@ gce_MakeDir::gce_MakeDir(const Standard_Real Xv,
const gp_Dir& gce_MakeDir::Value() const
{
StdFail_NotDone_Raise_if(!TheError == gce_Done,"");
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return TheDir;
}

View File

@ -62,7 +62,7 @@ gce_MakeDir2d::gce_MakeDir2d(const Standard_Real Xv,
const gp_Dir2d& gce_MakeDir2d::Value() const
{
StdFail_NotDone_Raise_if(!TheError == gce_Done,"");
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return TheDir2d;
}

View File

@ -63,7 +63,7 @@ gce_MakeElips::gce_MakeElips(const gp_Pnt& S1 ,
const gp_Elips& gce_MakeElips::Value() const
{
StdFail_NotDone_Raise_if(!TheError == gce_Done,"");
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return TheElips;
}

View File

@ -69,7 +69,7 @@ gce_MakeElips2d::gce_MakeElips2d(const gp_Ax22d& A ,
const gp_Elips2d& gce_MakeElips2d::Value() const
{
StdFail_NotDone_Raise_if(!TheError == gce_Done,"");
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return TheElips2d;
}

View File

@ -55,7 +55,7 @@ gce_MakeHypr::gce_MakeHypr(const gp_Ax2& A2 ,
const gp_Hypr& gce_MakeHypr::Value() const
{
StdFail_NotDone_Raise_if(!TheError == gce_Done,"");
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return TheHypr;
}

View File

@ -67,7 +67,7 @@ gce_MakeHypr2d::gce_MakeHypr2d(const gp_Ax22d& A ,
const gp_Hypr2d& gce_MakeHypr2d::Value() const
{
StdFail_NotDone_Raise_if(!TheError == gce_Done,"");
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return TheHypr2d;
}

View File

@ -69,7 +69,7 @@ gce_MakeLin::gce_MakeLin(const gp_Lin& Lin ,
const gp_Lin& gce_MakeLin::Value() const
{
StdFail_NotDone_Raise_if(!TheError == gce_Done,"");
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return TheLin;
}

View File

@ -103,7 +103,7 @@ gce_MakeLin2d::gce_MakeLin2d(const gp_Lin2d& Line,
gp_Lin2d gce_MakeLin2d::Value() const
{
StdFail_NotDone_Raise_if(!TheError == gce_Done,"");
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return TheLin2d;
}

View File

@ -37,7 +37,7 @@ gce_MakeParab::gce_MakeParab(const gp_Ax1& D ,
const gp_Parab& gce_MakeParab::Value () const
{
StdFail_NotDone_Raise_if(!TheError == gce_Done,"");
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return TheParab;
}

View File

@ -75,7 +75,7 @@ gce_MakeParab2d::gce_MakeParab2d(const gp_Pnt2d& S ,
const gp_Parab2d& gce_MakeParab2d::Value () const
{
StdFail_NotDone_Raise_if(!TheError == gce_Done,"");
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return TheParab2d;
}

View File

@ -124,7 +124,7 @@ gce_MakePln::gce_MakePln(const gp_Ax1& Axis )
*/
const gp_Pln& gce_MakePln::Value () const
{
StdFail_NotDone_Raise_if(!TheError == gce_Done,"");
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return ThePln;
}