Gui: modernize C++11

* use nullptr
This commit is contained in:
wmayer
2022-03-23 18:41:21 +01:00
parent be7e18757c
commit 1178df06b4
239 changed files with 1197 additions and 1197 deletions

View File

@@ -165,9 +165,9 @@ RotTransDragger::RotTransDragger()
RotTransDragger::~RotTransDragger()
{
if (rotFieldSensor!=NULL)
if (rotFieldSensor!=nullptr)
delete rotFieldSensor;
if (translFieldSensor!=NULL)
if (translFieldSensor!=nullptr)
delete translFieldSensor;
}
@@ -269,7 +269,7 @@ RotTransDragger::setUpConnections(SbBool onOff, SbBool doItAlways)
// Call the sensor CB to make things up-to-date.
fieldSensorCB(this, NULL);
fieldSensorCB(this, nullptr);
// Connect the field sensors
if (translFieldSensor->getAttachedField() != &translation)
@@ -315,9 +315,9 @@ RotTransDragger::setUpConnections(SbBool onOff, SbBool doItAlways)
unregisterChildDragger(ZD);
// Disconnect the field sensors.
if (translFieldSensor->getAttachedField()!=NULL)
if (translFieldSensor->getAttachedField()!=nullptr)
translFieldSensor->detach();
if (rotFieldSensor->getAttachedField()!=NULL)
if (rotFieldSensor->getAttachedField()!=nullptr)
rotFieldSensor->detach();
SoDragger::setUpConnections(onOff, doItAlways);
@@ -374,7 +374,7 @@ RotTransDragger::invalidateSurroundScaleCB(void *parent, SoDragger *)
// Invalidate the surroundScale, if it exists.
SoSurroundScale *mySS = SO_CHECK_PART(
myParentDragger, "surroundScale", SoSurroundScale);
if (mySS != NULL)
if (mySS != nullptr)
mySS->invalidate();
}