CLang warnings -Wlogical-not-parentheses were fixed.
}
BRepAdaptor_Curve anAdaptedCurve (anEdge);
- if (!anAdaptedCurve.GetType() == GeomAbs_Circle)
+ if (anAdaptedCurve.GetType() != GeomAbs_Circle)
{
return Standard_False;
}
//=======================================================================
Standard_Boolean AIS_MultipleConnectedInteractive::HasConnection() const
{
- return (!myReferences.Length()==0);
+ return (myReferences.Length() != 0);
}
//=======================================================================
Standard_Real UU =0., Dist = Precision::Infinite(), D1, D2;
- if ( !Ext.NbPoints() == 0 ) {
+ if ( Ext.NbPoints() != 0 ) {
UU = Ext.LowerDistanceParameter();
Dist = Ext.LowerDistance();
}
}
}
- if ( !myPolygon.Length() == 0) {
+ if ( myPolygon.Length() != 0 ) {
SupLastParameter();
//----------------------------------------------
// Construction of the polygon of the bissectrice.
It.NextVisible()) {
It.Visible(sta,tolsta,end,tolend);
D.MoveTo(ec.Value3D(sta));
- if (!ec.GetType() == GeomAbs_Line) {
+ if (ec.GetType() != GeomAbs_Line) {
Standard_Integer nbPnt = 100;
Standard_Real step = (end-sta)/(nbPnt+1);
It.NextHidden()) {
It.Hidden(sta,tolsta,end,tolend);
D.MoveTo(ec.Value3D(sta));
- if (!ec.GetType() == GeomAbs_Line) {
+ if (ec.GetType() != GeomAbs_Line) {
Standard_Integer nbPnt = 100;
Standard_Real step = (end-sta)/(nbPnt+1);
Standard_Boolean IGESDimen_NewGeneralNote::IsMirrored
(const Standard_Integer Index) const
{
- return (! theMirrorFlags->Value(Index) == 0);
+ return (theMirrorFlags->Value(Index) != 0);
}
Standard_Integer IGESDimen_NewGeneralNote::RotateFlag
//AddFail(start, "OffsetCurve Transfer Error : Null IGESEntity");
return res;
}
- if (!start->OffsetType()==1) {
+ if (start->OffsetType() != 1) {
Message_Msg Msg1100("IGES_1100"); //"Offset distance flag different from 1 not treated"
SendFail(start,Msg1100);
//AddFail(start, "Offset distance flag different from 1 not treated");
while (BaseCrv->IsKind(STANDARD_TYPE(IGESGeom_OffsetCurve))) {
DeclareAndCast(IGESGeom_OffsetCurve, OffCrv, BaseCrv);
- if (!OffCrv->OffsetType()==1) {
+ if (OffCrv->OffsetType() != 1) {
Message_Msg Msg1100("IGES_1100"); //"Offset distance flag different from 1 not treated"
SendFail(start,Msg1100);
return res;
return res;
}
- if (!start->OffsetType()==1) {
+ if (start->OffsetType() != 1) {
Message_Msg Msg1100("IGES_1100"); //"Offset distance flag different from 1 not treated"
SendFail(start,Msg1100);
}
}
imbSh.Clear();
}
- } while (!imbSh.Extent() == 0);
+ } while (imbSh.Extent() != 0);
Standard_Integer nbsol = lsolid.Extent();
Standard_Integer nbshl = lshell.Extent();
{
if (aSide == MAT_Left) {
// if (aNode == FirstNode()) return (!firstArcLeft == NULL);
- if (aNode == FirstNode()) return (!firstArcLeft == 0);
+ if (aNode == FirstNode()) return (firstArcLeft != 0);
// if (aNode == SecondNode()) return (!secondArcLeft == NULL);
- if (aNode == SecondNode()) return (!secondArcLeft == 0);
+ if (aNode == SecondNode()) return (secondArcLeft != 0);
}
else {
// if (aNode == FirstNode()) return (!firstArcRight == NULL);
- if (aNode == FirstNode()) return (!firstArcRight == 0);
+ if (aNode == FirstNode()) return (firstArcRight != 0);
// if (aNode == SecondNode()) return (!secondArcRight == NULL);
- if (aNode == SecondNode()) return (!secondArcRight == 0);
+ if (aNode == SecondNode()) return (secondArcRight != 0);
}
Standard_DomainError::Raise("MAT_Arc::HasNeighbour");
return Standard_False;
CSLib_NormalStatus NStat;
S.Initialize(aFace, Standard_False);
const TColgp_Array1OfPnt2d& UVNodes = T->UVNodes();
- if (!S.GetType() == GeomAbs_Plane) {
+ if (S.GetType() != GeomAbs_Plane) {
for (i = UVNodes.Lower(); i <= UVNodes.Upper(); i++) {
U = UVNodes(i).X();
V = UVNodes(i).Y();
void TNaming_NamedShape::Add(TNaming_Node*& pdn )
{
pdn->myAtt = this;
- if (!myNode == 0L){
+ if (myNode != 0L){
pdn->nextSameAttribute = myNode;
}
myNode = pdn;