0026167: Coding rules - eliminate -Wlogical-not-parentheses CLang warnings in GeomToStep
authorkgv <kgv@opencascade.com>
Thu, 30 Apr 2015 10:26:01 +0000 (13:26 +0300)
committerbugmaster <bugmaster@opencascade.com>
Wed, 6 May 2015 14:22:49 +0000 (17:22 +0300)
30 files changed:
src/GeomToStep/GeomToStep_MakeAxis1Placement.cxx
src/GeomToStep/GeomToStep_MakeAxis2Placement2d.cxx
src/GeomToStep/GeomToStep_MakeBSplineCurveWithKnots.cxx
src/GeomToStep/GeomToStep_MakeBSplineCurveWithKnotsAndRationalBSplineCurve.cxx
src/GeomToStep/GeomToStep_MakeBSplineSurfaceWithKnots.cxx
src/GeomToStep/GeomToStep_MakeBSplineSurfaceWithKnotsAndRationalBSplineSurface.cxx
src/GeomToStep/GeomToStep_MakeBoundedCurve.cxx
src/GeomToStep/GeomToStep_MakeBoundedSurface.cxx
src/GeomToStep/GeomToStep_MakeCartesianPoint.cxx
src/GeomToStep/GeomToStep_MakeCircle.cxx
src/GeomToStep/GeomToStep_MakeConic.cxx
src/GeomToStep/GeomToStep_MakeConicalSurface.cxx
src/GeomToStep/GeomToStep_MakeCurve.cxx
src/GeomToStep/GeomToStep_MakeCylindricalSurface.cxx
src/GeomToStep/GeomToStep_MakeDirection.cxx
src/GeomToStep/GeomToStep_MakeElementarySurface.cxx
src/GeomToStep/GeomToStep_MakeEllipse.cxx
src/GeomToStep/GeomToStep_MakeHyperbola.cxx
src/GeomToStep/GeomToStep_MakeLine.cxx
src/GeomToStep/GeomToStep_MakeParabola.cxx
src/GeomToStep/GeomToStep_MakePlane.cxx
src/GeomToStep/GeomToStep_MakePolyline.cxx
src/GeomToStep/GeomToStep_MakeRectangularTrimmedSurface.cxx
src/GeomToStep/GeomToStep_MakeSphericalSurface.cxx
src/GeomToStep/GeomToStep_MakeSurface.cxx
src/GeomToStep/GeomToStep_MakeSurfaceOfLinearExtrusion.cxx
src/GeomToStep/GeomToStep_MakeSurfaceOfRevolution.cxx
src/GeomToStep/GeomToStep_MakeSweptSurface.cxx
src/GeomToStep/GeomToStep_MakeToroidalSurface.cxx
src/GeomToStep/GeomToStep_MakeVector.cxx

index b46d17c..4216bbe 100644 (file)
@@ -78,6 +78,6 @@ GeomToStep_MakeAxis1Placement::GeomToStep_MakeAxis1Placement
 const Handle(StepGeom_Axis1Placement) &
       GeomToStep_MakeAxis1Placement::Value() const
 {
-  StdFail_NotDone_Raise_if(!done == Standard_True,"");
+  StdFail_NotDone_Raise_if(!done, "");
   return theAxis1Placement;
 }
index 2239caa..d22f53b 100644 (file)
@@ -110,6 +110,6 @@ GeomToStep_MakeAxis2Placement2d::GeomToStep_MakeAxis2Placement2d
 const Handle(StepGeom_Axis2Placement2d) &
       GeomToStep_MakeAxis2Placement2d::Value() const
 {
-  StdFail_NotDone_Raise_if(!done == Standard_True,"");
+  StdFail_NotDone_Raise_if(!done, "");
   return theAxis2Placement2d;
 }
index 90ce2d9..b269a77 100644 (file)
@@ -65,6 +65,6 @@ GeomToStep_MakeBSplineCurveWithKnots::
 const Handle(StepGeom_BSplineCurveWithKnots) &
       GeomToStep_MakeBSplineCurveWithKnots::Value() const
 {
-  StdFail_NotDone_Raise_if(!done == Standard_True,"");
+  StdFail_NotDone_Raise_if(!done, "");
   return theBSplineCurveWithKnots;
 }
index eca9766..ce39381 100644 (file)
@@ -65,6 +65,6 @@ GeomToStep_MakeBSplineCurveWithKnotsAndRationalBSplineCurve::
 const Handle(StepGeom_BSplineCurveWithKnotsAndRationalBSplineCurve) &
       GeomToStep_MakeBSplineCurveWithKnotsAndRationalBSplineCurve::Value() const
 {
-  StdFail_NotDone_Raise_if(!done == Standard_True,"");
+  StdFail_NotDone_Raise_if(!done, "");
   return theBSplineCurveWithKnotsAndRationalBSplineCurve;
 }
index 05bb7f0..6f0755f 100644 (file)
@@ -148,6 +148,6 @@ GeomToStep_MakeBSplineSurfaceWithKnots::
 const Handle(StepGeom_BSplineSurfaceWithKnots) &
       GeomToStep_MakeBSplineSurfaceWithKnots::Value() const
 {
-  StdFail_NotDone_Raise_if(!done == Standard_True,"");
+  StdFail_NotDone_Raise_if(!done, "");
   return theBSplineSurfaceWithKnots;
 }
index 37a95a1..47d27f7 100644 (file)
@@ -160,6 +160,6 @@ GeomToStep_MakeBSplineSurfaceWithKnotsAndRationalBSplineSurface::
 const Handle(StepGeom_BSplineSurfaceWithKnotsAndRationalBSplineSurface) &
       GeomToStep_MakeBSplineSurfaceWithKnotsAndRationalBSplineSurface::Value() const
 {
-  StdFail_NotDone_Raise_if(!done == Standard_True,"");
+  StdFail_NotDone_Raise_if(!done, "");
   return theBSplineSurfaceWithKnotsAndRationalBSplineSurface;
 }
index 65d1803..018bde4 100644 (file)
@@ -121,6 +121,6 @@ GeomToStep_MakeBoundedCurve::GeomToStep_MakeBoundedCurve ( const Handle(Geom2d_B
 const Handle(StepGeom_BoundedCurve) &
       GeomToStep_MakeBoundedCurve::Value() const
 {
-  StdFail_NotDone_Raise_if(!done == Standard_True,"");
+  StdFail_NotDone_Raise_if(!done, "");
   return theBoundedCurve;
 }
index 264222c..3173e79 100644 (file)
@@ -87,6 +87,6 @@ GeomToStep_MakeBoundedSurface::GeomToStep_MakeBoundedSurface
 const Handle(StepGeom_BoundedSurface) &
       GeomToStep_MakeBoundedSurface::Value() const
 {
-  StdFail_NotDone_Raise_if(!done == Standard_True,"");
+  StdFail_NotDone_Raise_if(!done, "");
   return theBoundedSurface;
 }
index 8f3b016..368b2be 100644 (file)
@@ -123,6 +123,6 @@ GeomToStep_MakeCartesianPoint::
 const Handle(StepGeom_CartesianPoint) &
       GeomToStep_MakeCartesianPoint::Value() const
 {
-  StdFail_NotDone_Raise_if(!done == Standard_True,"");
+  StdFail_NotDone_Raise_if(!done, "");
   return theCartesianPoint;
 }
index 804dabf..b25677e 100644 (file)
@@ -81,6 +81,6 @@ GeomToStep_MakeCircle::GeomToStep_MakeCircle( const Handle(Geom2d_Circle)& Cer)
 const Handle(StepGeom_Circle) &
       GeomToStep_MakeCircle::Value() const
 {
-  StdFail_NotDone_Raise_if(!done == Standard_True,"");
+  StdFail_NotDone_Raise_if(!done, "");
   return theCircle;
 }
index bd59d52..a5d63ec 100644 (file)
@@ -110,6 +110,6 @@ GeomToStep_MakeConic::GeomToStep_MakeConic ( const Handle(Geom2d_Conic)& C)
 const Handle(StepGeom_Conic) &
       GeomToStep_MakeConic::Value() const
 {
-  StdFail_NotDone_Raise_if(!done == Standard_True,"");
+  StdFail_NotDone_Raise_if(!done, "");
   return theConic;
 }
index d266bf1..db8db7f 100644 (file)
@@ -59,6 +59,6 @@ GeomToStep_MakeConicalSurface::GeomToStep_MakeConicalSurface
 const Handle(StepGeom_ConicalSurface) &
       GeomToStep_MakeConicalSurface::Value() const
 {
-  StdFail_NotDone_Raise_if(!done == Standard_True,"");
+  StdFail_NotDone_Raise_if(!done, "");
   return theConicalSurface;
 }
index 3ff37cf..33a2af9 100644 (file)
@@ -169,6 +169,6 @@ GeomToStep_MakeCurve::GeomToStep_MakeCurve ( const Handle(Geom2d_Curve)& C)
 const Handle(StepGeom_Curve) &
       GeomToStep_MakeCurve::Value() const
 {
-  StdFail_NotDone_Raise_if(!done == Standard_True,"");
+  StdFail_NotDone_Raise_if(!done, "");
   return theCurve;
 }
index 965ec51..0ae7c69 100644 (file)
@@ -53,6 +53,6 @@ GeomToStep_MakeCylindricalSurface::GeomToStep_MakeCylindricalSurface
 const Handle(StepGeom_CylindricalSurface) &
       GeomToStep_MakeCylindricalSurface::Value() const
 {
-  StdFail_NotDone_Raise_if(!done == Standard_True,"");
+  StdFail_NotDone_Raise_if(!done, "");
   return theCylindricalSurface;
 }
index 908ad22..ad6648c 100644 (file)
@@ -115,6 +115,6 @@ GeomToStep_MakeDirection::GeomToStep_MakeDirection
 const Handle(StepGeom_Direction) &
       GeomToStep_MakeDirection::Value() const
 {
-  StdFail_NotDone_Raise_if(!done == Standard_True,"");
+  StdFail_NotDone_Raise_if(!done, "");
   return theDirection;
 }
index fe82c19..c1315e2 100644 (file)
@@ -79,6 +79,6 @@ GeomToStep_MakeElementarySurface::GeomToStep_MakeElementarySurface
 const Handle(StepGeom_ElementarySurface) &
       GeomToStep_MakeElementarySurface::Value() const
 {
-  StdFail_NotDone_Raise_if(!done == Standard_True,"");
+  StdFail_NotDone_Raise_if(!done, "");
   return theElementarySurface;
 }
index 0a5a25d..c086fe8 100644 (file)
@@ -81,6 +81,6 @@ GeomToStep_MakeEllipse::GeomToStep_MakeEllipse( const Handle(Geom2d_Ellipse)& Ce
 const Handle(StepGeom_Ellipse) &
       GeomToStep_MakeEllipse::Value() const
 {
-  StdFail_NotDone_Raise_if(!done == Standard_True,"");
+  StdFail_NotDone_Raise_if(!done, "");
   return theEllipse;
 }
index f1ec6b1..25d0502 100644 (file)
@@ -83,7 +83,7 @@ GeomToStep_MakeHyperbola::GeomToStep_MakeHyperbola(const Handle(Geom2d_Hyperbola
 
 const Handle(StepGeom_Hyperbola)& GeomToStep_MakeHyperbola::Value() const 
 {
-  StdFail_NotDone_Raise_if(!done == Standard_True,"");
+  StdFail_NotDone_Raise_if(!done, "");
   return theHyperbola;
 }
 
index ad2c7b2..3c75e1f 100644 (file)
@@ -82,7 +82,7 @@ GeomToStep_MakeLine::GeomToStep_MakeLine ( const Handle(Geom2d_Line)& Gline)
 const Handle(StepGeom_Line) &
       GeomToStep_MakeLine::Value() const
 {
-  StdFail_NotDone_Raise_if(!done == Standard_True,"");
+  StdFail_NotDone_Raise_if(!done, "");
   return theLine;
 }
 
index c2551da..0d91ace 100644 (file)
@@ -80,7 +80,7 @@ GeomToStep_MakeParabola::GeomToStep_MakeParabola(const Handle(Geom2d_Parabola)&
 
 const Handle(StepGeom_Parabola)& GeomToStep_MakeParabola::Value() const 
 {
-  StdFail_NotDone_Raise_if(!done == Standard_True,"");
+  StdFail_NotDone_Raise_if(!done, "");
   return theParabola;
 }
 
index 05389c0..083c19d 100644 (file)
@@ -70,7 +70,7 @@ GeomToStep_MakePlane::GeomToStep_MakePlane( const Handle(Geom_Plane)& Gpln)
 const Handle(StepGeom_Plane) &
       GeomToStep_MakePlane::Value() const
 {
-  StdFail_NotDone_Raise_if(!done == Standard_True,"");
+  StdFail_NotDone_Raise_if(!done, "");
   return thePlane;
 }
 
index 7e11a22..4fa9e85 100644 (file)
@@ -51,6 +51,6 @@ GeomToStep_MakePolyline::GeomToStep_MakePolyline( const TColgp_Array1OfPnt2d& P)
 const Handle(StepGeom_Polyline) &
       GeomToStep_MakePolyline::Value() const
 {
-  StdFail_NotDone_Raise_if(!done == Standard_True,"");
+  StdFail_NotDone_Raise_if(!done, "");
   return thePolyline;
 }
index d39707f..e93004b 100644 (file)
@@ -103,6 +103,6 @@ GeomToStep_MakeRectangularTrimmedSurface::
 const Handle(StepGeom_RectangularTrimmedSurface) &
       GeomToStep_MakeRectangularTrimmedSurface::Value() const
 {
-  StdFail_NotDone_Raise_if(!done == Standard_True,"");
+  StdFail_NotDone_Raise_if(!done, "");
   return theRectangularTrimmedSurface;
 }
index 150025f..63f3535 100644 (file)
@@ -53,6 +53,6 @@ GeomToStep_MakeSphericalSurface::GeomToStep_MakeSphericalSurface
 const Handle(StepGeom_SphericalSurface) &
       GeomToStep_MakeSphericalSurface::Value() const
 {
-  StdFail_NotDone_Raise_if(!done == Standard_True,"");
+  StdFail_NotDone_Raise_if(!done, "");
   return theSphericalSurface;
 }
index 16556ef..35785d3 100644 (file)
@@ -82,6 +82,6 @@ GeomToStep_MakeSurface::GeomToStep_MakeSurface ( const Handle(Geom_Surface)& S)
 const Handle(StepGeom_Surface) &
       GeomToStep_MakeSurface::Value() const
 {
-  StdFail_NotDone_Raise_if(!done == Standard_True,"");
+  StdFail_NotDone_Raise_if(!done, "");
   return theSurface;
 }
index 363498b..beef2f2 100644 (file)
@@ -58,6 +58,6 @@ GeomToStep_MakeSurfaceOfLinearExtrusion::GeomToStep_MakeSurfaceOfLinearExtrusion
 const Handle(StepGeom_SurfaceOfLinearExtrusion) &
       GeomToStep_MakeSurfaceOfLinearExtrusion::Value() const
 {
-  StdFail_NotDone_Raise_if(!done == Standard_True,"");
+  StdFail_NotDone_Raise_if(!done, "");
   return theSurfaceOfLinearExtrusion;
 }
index 9f2f6c3..1bdf24c 100644 (file)
@@ -56,6 +56,6 @@ GeomToStep_MakeSurfaceOfRevolution::GeomToStep_MakeSurfaceOfRevolution
 const Handle(StepGeom_SurfaceOfRevolution) &
       GeomToStep_MakeSurfaceOfRevolution::Value() const
 {
-  StdFail_NotDone_Raise_if(!done == Standard_True,"");
+  StdFail_NotDone_Raise_if(!done, "");
   return theSurfaceOfRevolution;
 }
index 0de21f1..33d1181 100644 (file)
@@ -57,6 +57,6 @@ GeomToStep_MakeSweptSurface::GeomToStep_MakeSweptSurface
 const Handle(StepGeom_SweptSurface) &
       GeomToStep_MakeSweptSurface::Value() const
 {
-  StdFail_NotDone_Raise_if(!done == Standard_True,"");
+  StdFail_NotDone_Raise_if(!done, "");
   return theSweptSurface;
 }
index caa21c6..3741bc7 100644 (file)
@@ -54,6 +54,6 @@ GeomToStep_MakeToroidalSurface::GeomToStep_MakeToroidalSurface
 const Handle(StepGeom_ToroidalSurface) &
       GeomToStep_MakeToroidalSurface::Value() const
 {
-  StdFail_NotDone_Raise_if(!done == Standard_True,"");
+  StdFail_NotDone_Raise_if(!done, "");
   return theToroidalSurface;
 }
index a051c65..2c71354 100644 (file)
@@ -81,6 +81,6 @@ GeomToStep_MakeVector::GeomToStep_MakeVector ( const Handle(Geom2d_Vector)&
 const Handle(StepGeom_Vector) &
       GeomToStep_MakeVector::Value() const
 {
-  StdFail_NotDone_Raise_if(!done == Standard_True,"");
+  StdFail_NotDone_Raise_if(!done, "");
   return theVector;
 }