C++11: modernize use nullptr (replaces NULL or 0)

This commit is contained in:
wmayer
2021-11-05 18:16:19 +01:00
parent ef598dd1e3
commit 3dcbceda3a
36 changed files with 247 additions and 258 deletions

View File

@@ -50,7 +50,7 @@
#include <Inventor/nodes/SoSeparator.h>
#include <Quarter/QuarterWidget.h>
#include <stdlib.h>
#include <cstdlib>
namespace SIM { namespace Coin3D { namespace Quarter {
@@ -152,7 +152,7 @@ DragDropHandlerP::dropEvent(QDropEvent * event)
// attempt to import it
root = SoDB::readAll(&in);
if (root == NULL) return;
if (root == nullptr) return;
// set new scenegraph
this->quarterwidget->setSceneGraph(root);