[Gui] remove more superfluous nullptr checks

This commit is contained in:
Uwe
2022-07-18 03:34:22 +02:00
parent 746f24efa3
commit d5b227e6a6
23 changed files with 45 additions and 52 deletions

View File

@@ -337,7 +337,7 @@ void ViewProviderMeasureDistance::measureDistanceCallback(void * ud, SoEventCall
if (mbe->getButton() == SoMouseButtonEvent::BUTTON1 && mbe->getState() == SoButtonEvent::DOWN) {
const SoPickedPoint * point = n->getPickedPoint();
if (point == nullptr) {
if (!point) {
Base::Console().Message("No point picked.\n");
return;
}