Ternary operator proper precedence.
Going through PVS Studio blogs on Haiku.
This commit is contained in:
@@ -241,7 +241,7 @@ struct BAbstractLayout::ViewProxy : Proxy {
|
|||||||
bool IsVisible(bool ancestorsVisible) const
|
bool IsVisible(bool ancestorsVisible) const
|
||||||
{
|
{
|
||||||
int16 showLevel = BView::Private(view).ShowLevel();
|
int16 showLevel = BView::Private(view).ShowLevel();
|
||||||
return (showLevel - (ancestorsVisible) ? 0 : 1) <= 0;
|
return (showLevel - (ancestorsVisible ? 0 : 1)) <= 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SetVisible(bool visible)
|
void SetVisible(bool visible)
|
||||||
|
|||||||
Reference in New Issue
Block a user