Tracker: code simplication, don't check if NULL
just pass in NULL, that's what is happening anyway.
This commit is contained in:
parent
82d9f9d119
commit
d48f1c2e3c
@ -357,11 +357,9 @@ void
|
||||
BSlowContextMenu::AddOneItem(Model* model)
|
||||
{
|
||||
BMenuItem* item = NewModelItem(model, &fMessage, fMessenger, false,
|
||||
dynamic_cast<BContainerWindow*>(fParentWindow) ?
|
||||
dynamic_cast<BContainerWindow*>(fParentWindow) : 0,
|
||||
fTypesList, &fTrackingHook);
|
||||
|
||||
if (item)
|
||||
dynamic_cast<BContainerWindow*>(fParentWindow), fTypesList,
|
||||
&fTrackingHook);
|
||||
if (item != NULL)
|
||||
fItemList->AddItem(item);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user