[Gui] remove more superfluous nullptr checks

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

View File

@@ -1030,7 +1030,7 @@ SoBoxSelectionRenderActionP::initBoxGraph()
void
SoBoxSelectionRenderActionP::updateBbox(const SoPath * path)
{
if (this->camerasearch == nullptr) {
if (!this->camerasearch) {
this->camerasearch = new SoSearchAction;
}
@@ -1047,7 +1047,7 @@ SoBoxSelectionRenderActionP::updateBbox(const SoPath * path)
this->localRoot->insertChild(this->camerasearch->getPath()->getTail(), 0);
this->camerasearch->reset();
if (this->bboxaction == nullptr) {
if (!this->bboxaction) {
this->bboxaction = new SoGetBoundingBoxAction(SbViewportRegion(100, 100));
}
this->bboxaction->setViewportRegion(PUBLIC(this)->getViewportRegion());