From f9fe8e12c3bea369d37ebbf35947ba49edbf5327 Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Sun, 24 Jan 2016 17:04:06 +0100 Subject: [PATCH] Style fixes as suggested by Axel. --- src/kits/interface/Box.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kits/interface/Box.cpp b/src/kits/interface/Box.cpp index 0b0cb82054..481cba0c3b 100644 --- a/src/kits/interface/Box.cpp +++ b/src/kits/interface/Box.cpp @@ -593,14 +593,14 @@ BBox::DoLayout() // layout the child BView* child = _Child(); - if (child) { + if (child != NULL) { BRect frame(Bounds()); frame.left += fLayoutData->insets.left; frame.top += fLayoutData->insets.top; frame.right -= fLayoutData->insets.right; frame.bottom -= fLayoutData->insets.bottom; - if (child->Flags() & B_SUPPORTS_LAYOUT) + if ((child->Flags() & B_SUPPORTS_LAYOUT) != 0) BLayoutUtils::AlignInFrame(child, frame); else child->MoveTo(frame.LeftTop());