From: Pawel Date: Wed, 20 Mar 2013 11:53:44 +0000 (+0100) Subject: 0023844: It's odd to compare a bool type value with a value of 0. X-Git-Tag: V6_6_0_beta~11 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=123e4db005ddcef6109a3d493238e55dbc392511;p=occt-copy.git 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 --- diff --git a/src/AIS/AIS_InteractiveObject.lxx b/src/AIS/AIS_InteractiveObject.lxx index c5d000f1af..07aa890ddb 100755 --- a/src/AIS/AIS_InteractiveObject.lxx +++ b/src/AIS/AIS_InteractiveObject.lxx @@ -74,7 +74,7 @@ inline void AIS_InteractiveObject::Color(Quantity_Color& aColor) const } inline Standard_Boolean AIS_InteractiveObject::HasWidth() const -{return (!myOwnWidth == 0.);} +{return !(myOwnWidth == 0.);} inline Standard_Real AIS_InteractiveObject::Width() const {return myOwnWidth;}