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

@@ -84,7 +84,7 @@ void SoGLWidgetElement::initClass(void)
void SoGLWidgetElement::init(SoState * state)
{
inherited::init(state);
this->window = 0;
this->window = nullptr;
}
SoGLWidgetElement::~SoGLWidgetElement()
@@ -122,7 +122,7 @@ SbBool SoGLWidgetElement::matches(const SoElement * /*element*/) const
SoElement * SoGLWidgetElement::copyMatchInfo(void) const
{
return 0;
return nullptr;
}
// ---------------------------------
@@ -139,7 +139,7 @@ void SoGLRenderActionElement::initClass(void)
void SoGLRenderActionElement::init(SoState * state)
{
inherited::init(state);
this->glRenderAction = 0;
this->glRenderAction = nullptr;
}
SoGLRenderActionElement::~SoGLRenderActionElement()
@@ -177,7 +177,7 @@ SbBool SoGLRenderActionElement::matches(const SoElement * /*element*/) const
SoElement * SoGLRenderActionElement::copyMatchInfo(void) const
{
return 0;
return nullptr;
}
// ---------------------------------
@@ -187,7 +187,7 @@ SO_NODE_SOURCE(SoGLWidgetNode)
/*!
Constructor.
*/
SoGLWidgetNode::SoGLWidgetNode(void) : window(0)
SoGLWidgetNode::SoGLWidgetNode(void) : window(nullptr)
{
SO_NODE_CONSTRUCTOR(SoGLWidgetNode);
}
@@ -281,5 +281,5 @@ SbBool SoGLVBOActivatedElement::matches(const SoElement * /*element*/) const
SoElement * SoGLVBOActivatedElement::copyMatchInfo(void) const
{
return 0;
return nullptr;
}