Tracker: code simplication, don't check if NULL

just pass in NULL, that's what is happening anyway.
This commit is contained in:
John Scipione 2014-07-28 11:14:21 -04:00
parent 82d9f9d119
commit d48f1c2e3c

View File

@ -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);
}