[Gui] remove more superfluous nullptr checks
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user