Tracker: Style fixes, should have no functional change
This commit is contained in:
@@ -131,16 +131,15 @@ PoseList::FindAllPoses(const node_ref *node) const
|
||||
continue;
|
||||
|
||||
model = model->LinkTo();
|
||||
if (model && *model->NodeRef() == *node) {
|
||||
if (model != NULL && *model->NodeRef() == *node) {
|
||||
result->AddItem(pose);
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!model) {
|
||||
model = new Model(pose->TargetModel()->EntryRef(), true);
|
||||
if (*model->NodeRef() == *node)
|
||||
if (model == NULL) {
|
||||
Model model(pose->TargetModel()->EntryRef(), true);
|
||||
if (*model.NodeRef() == *node)
|
||||
result->AddItem(pose);
|
||||
delete model;
|
||||
}
|
||||
}
|
||||
return result;
|
||||
|
||||
@@ -4961,7 +4961,7 @@ UpdateWasBrokenSymlinkBinder(BPose *pose, Model *model, int32 index,
|
||||
|
||||
BPoint loc(0, index * poseView->ListElemHeight());
|
||||
pose->UpdateWasBrokenSymlink(loc, poseView);
|
||||
if (model->LinkTo())
|
||||
if (model->LinkTo() != NULL)
|
||||
fBrokenLinks->RemoveItem(model);
|
||||
}
|
||||
|
||||
@@ -4995,7 +4995,7 @@ BPoseView::PoseHandleDeviceUnmounted(BPose* pose, Model* model, int32 index,
|
||||
if (model->NodeRef()->device == device)
|
||||
poseView->DeletePose(model->NodeRef());
|
||||
else if (model->IsSymLink()
|
||||
&& model->LinkTo()
|
||||
&& model->LinkTo() != NULL
|
||||
&& model->LinkTo()->NodeRef()->device == device)
|
||||
poseView->DeleteSymLinkPoseTarget(model->LinkTo()->NodeRef(), pose, index);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user