[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

@@ -276,7 +276,7 @@ void LightManip(SoSeparator * root)
SoInput in;
in.setBuffer((void *)scenegraph, std::strlen(scenegraph));
SoSeparator * _root = SoDB::readAll( &in );
if ( _root == nullptr ) // Shouldn't happen.
if (!_root) // Shouldn't happen.
return;
root->addChild(_root);
root->ref();
@@ -290,7 +290,7 @@ void LightManip(SoSeparator * root)
sa.setSearchingAll( false );
sa.apply( root );
SoPath * path = sa.getPath();
if ( path == nullptr) // Shouldn't happen.
if (!path) // Shouldn't happen.
return;
SoPointLightManip * manip = new SoPointLightManip;
@@ -396,7 +396,7 @@ timersensorcallback(void * data, SoSensor *)
void AnimationTexture(SoSeparator * root)
{
// Scene graph
if ( root == nullptr ) // Shouldn't happen.
if (!root) // Shouldn't happen.
return;
// Generate a julia set to use as a texturemap