[Mesh] remove superfluous nullptr checks

This commit is contained in:
Uwe
2022-07-18 02:37:33 +02:00
parent f467451ae3
commit 2bde1e6923
9 changed files with 16 additions and 16 deletions

View File

@@ -526,7 +526,7 @@ void ViewProviderMeshCurvature::curvatureInfoCallback(void * ud, SoEventCallback
}
else if (mbe->getButton() == SoMouseButtonEvent::BUTTON1 && mbe->getState() == SoButtonEvent::UP) {
const SoPickedPoint * point = n->getPickedPoint();
if (point == nullptr) {
if (!point) {
Base::Console().Message("No facet picked.\n");
return;
}
@@ -564,7 +564,7 @@ void ViewProviderMeshCurvature::curvatureInfoCallback(void * ud, SoEventCallback
}
else if (ev->getTypeId().isDerivedFrom(SoLocation2Event::getClassTypeId())) {
const SoPickedPoint * point = n->getPickedPoint();
if (point == nullptr)
if (!point)
return;
n->setHandled();