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:
@@ -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;
|
||||
}
|
||||
//=======================================================================
|
||||
|
@@ -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;
|
||||
}
|
||||
|
||||
|
@@ -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;
|
||||
}
|
||||
|
||||
|
@@ -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;
|
||||
}
|
||||
|
||||
|
@@ -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;
|
||||
}
|
||||
|
||||
|
@@ -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;
|
||||
}
|
||||
|
||||
|
@@ -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;
|
||||
}
|
||||
|
||||
|
@@ -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;
|
||||
}
|
||||
|
||||
|
@@ -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;
|
||||
}
|
||||
|
||||
|
@@ -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;
|
||||
}
|
||||
|
||||
|
@@ -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;
|
||||
}
|
||||
|
||||
|
@@ -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;
|
||||
}
|
||||
|
||||
|
@@ -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;
|
||||
}
|
||||
|
||||
|
@@ -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;
|
||||
}
|
||||
|
||||
|
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user