Ternary operator proper precedence.

Going through PVS Studio blogs on Haiku.
This commit is contained in:
Fredrik Holmqvist
2018-04-23 23:25:16 +02:00
parent 3a764d6a12
commit e3becd53ee
+1 -1
View File
@@ -241,7 +241,7 @@ struct BAbstractLayout::ViewProxy : Proxy {
bool IsVisible(bool ancestorsVisible) const
{
int16 showLevel = BView::Private(view).ShowLevel();
return (showLevel - (ancestorsVisible) ? 0 : 1) <= 0;
return (showLevel - (ancestorsVisible ? 0 : 1)) <= 0;
}
void SetVisible(bool visible)