Tracker: Style fixes, should have no functional change

This commit is contained in:
Philippe Saint-Pierre
2012-08-09 23:15:27 -04:00
parent 6adbfc19ef
commit e0e641c078
4 changed files with 33 additions and 34 deletions
+4 -5
View File
@@ -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;
+2 -2
View File
@@ -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);
}