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