mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-16 10:08:36 +03:00
0023844: It's odd to compare a bool type value with a value of 0.
Comparing Standard_Real values instead of Standard_Real and Standard_Boolean
This commit is contained in:
parent
8b224a0992
commit
123e4db005
@ -74,7 +74,7 @@ inline void AIS_InteractiveObject::Color(Quantity_Color& aColor) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
inline Standard_Boolean AIS_InteractiveObject::HasWidth() const
|
inline Standard_Boolean AIS_InteractiveObject::HasWidth() const
|
||||||
{return (!myOwnWidth == 0.);}
|
{return !(myOwnWidth == 0.);}
|
||||||
|
|
||||||
inline Standard_Real AIS_InteractiveObject::Width() const
|
inline Standard_Real AIS_InteractiveObject::Width() const
|
||||||
{return myOwnWidth;}
|
{return myOwnWidth;}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user