include/osg/Callback: nullptr -> NULL

Fixes travis, which explictly requires c++98
This commit is contained in:
Gleb Mazovetskiy 2021-01-14 00:19:02 +00:00
parent 40bddd8d95
commit f59ab840f1

View File

@ -126,7 +126,7 @@ class OSG_EXPORT Callback : public virtual Object {
static T* findNestedCallback(osg::Callback* callback)
{
if (!callback)
return nullptr;
return NULL;
if (T* cb = dynamic_cast<T*>(callback))
return cb;
@ -139,7 +139,7 @@ class OSG_EXPORT Callback : public virtual Object {
static const T* findNestedCallback(const osg::Callback* callback)
{
if (!callback)
return nullptr;
return NULL;
if (const T* cb = dynamic_cast<const T*>(callback))
return cb;