Use be_control_look != NULL everywhere in the Interface Kit.
Should not be a functional change. It is not in the Haiku Coding Guidelines but I feel like 'if (object != NULL)' is generally preferred to 'if (object)', plus in this case of be_control_look that is the more common style.
This commit is contained in:
@@ -96,7 +96,7 @@ BCheckBox::Archive(BMessage *archive, bool deep) const
|
||||
void
|
||||
BCheckBox::Draw(BRect updateRect)
|
||||
{
|
||||
if (be_control_look) {
|
||||
if (be_control_look != NULL) {
|
||||
rgb_color base = ui_color(B_PANEL_BACKGROUND_COLOR);
|
||||
|
||||
uint32 flags = be_control_look->Flags(this);
|
||||
|
||||
Reference in New Issue
Block a user