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;
|
continue;
|
||||||
|
|
||||||
model = model->LinkTo();
|
model = model->LinkTo();
|
||||||
if (model && *model->NodeRef() == *node) {
|
if (model != NULL && *model->NodeRef() == *node) {
|
||||||
result->AddItem(pose);
|
result->AddItem(pose);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!model) {
|
if (model == NULL) {
|
||||||
model = new Model(pose->TargetModel()->EntryRef(), true);
|
Model model(pose->TargetModel()->EntryRef(), true);
|
||||||
if (*model->NodeRef() == *node)
|
if (*model.NodeRef() == *node)
|
||||||
result->AddItem(pose);
|
result->AddItem(pose);
|
||||||
delete model;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
@@ -4961,7 +4961,7 @@ UpdateWasBrokenSymlinkBinder(BPose *pose, Model *model, int32 index,
|
|||||||
|
|
||||||
BPoint loc(0, index * poseView->ListElemHeight());
|
BPoint loc(0, index * poseView->ListElemHeight());
|
||||||
pose->UpdateWasBrokenSymlink(loc, poseView);
|
pose->UpdateWasBrokenSymlink(loc, poseView);
|
||||||
if (model->LinkTo())
|
if (model->LinkTo() != NULL)
|
||||||
fBrokenLinks->RemoveItem(model);
|
fBrokenLinks->RemoveItem(model);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -4995,7 +4995,7 @@ BPoseView::PoseHandleDeviceUnmounted(BPose* pose, Model* model, int32 index,
|
|||||||
if (model->NodeRef()->device == device)
|
if (model->NodeRef()->device == device)
|
||||||
poseView->DeletePose(model->NodeRef());
|
poseView->DeletePose(model->NodeRef());
|
||||||
else if (model->IsSymLink()
|
else if (model->IsSymLink()
|
||||||
&& model->LinkTo()
|
&& model->LinkTo() != NULL
|
||||||
&& model->LinkTo()->NodeRef()->device == device)
|
&& model->LinkTo()->NodeRef()->device == device)
|
||||||
poseView->DeleteSymLinkPoseTarget(model->LinkTo()->NodeRef(), pose, index);
|
poseView->DeleteSymLinkPoseTarget(model->LinkTo()->NodeRef(), pose, index);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user