Gui: modernize C++11
* use nullptr
This commit is contained in:
@@ -224,7 +224,7 @@ void Texture3D(SoSeparator * root)
|
||||
|
||||
SoTransformerDragger * dragger = new SoTransformerDragger;
|
||||
dragger->scaleFactor.setValue(5,5,5);
|
||||
dragger->addValueChangedCallback(draggerCB, NULL);
|
||||
dragger->addValueChangedCallback(draggerCB, nullptr);
|
||||
root->addChild(dragger);
|
||||
|
||||
SoCoordinate3 * clippedCoords = new SoCoordinate3;
|
||||
@@ -276,7 +276,7 @@ void LightManip(SoSeparator * root)
|
||||
SoInput in;
|
||||
in.setBuffer((void *)scenegraph, std::strlen(scenegraph));
|
||||
SoSeparator * _root = SoDB::readAll( &in );
|
||||
if ( _root == NULL ) return; // Shouldn't happen.
|
||||
if ( _root == nullptr ) return; // Shouldn't happen.
|
||||
root->addChild(_root);
|
||||
root->ref();
|
||||
|
||||
@@ -289,7 +289,7 @@ void LightManip(SoSeparator * root)
|
||||
sa.setSearchingAll( false );
|
||||
sa.apply( root );
|
||||
SoPath * path = sa.getPath();
|
||||
if ( path == NULL) return; // Shouldn't happen.
|
||||
if ( path == nullptr) return; // Shouldn't happen.
|
||||
|
||||
SoPointLightManip * manip = new SoPointLightManip;
|
||||
manip->replaceNode( path );
|
||||
@@ -394,7 +394,7 @@ timersensorcallback(void * data, SoSensor *)
|
||||
void AnimationTexture(SoSeparator * root)
|
||||
{
|
||||
// Scene graph
|
||||
if ( root == NULL ) return; // Shouldn't happen.
|
||||
if ( root == nullptr ) return; // Shouldn't happen.
|
||||
|
||||
// Generate a julia set to use as a texturemap
|
||||
julia(global_cr, global_ci, 2.5, texturewidth, textureheight, 4, bitmap, 64);
|
||||
|
||||
Reference in New Issue
Block a user