1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +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

@@ -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;
}