Converted the instance of osgNew and osgDelete back to new and delete as part
of depecating the include/osg/MemoryManager
This commit is contained in:
@@ -22,13 +22,6 @@
|
||||
# endif /* OSGDBSG_LIBRARY */
|
||||
#else
|
||||
# define OSGDB_EXPORT
|
||||
#endif
|
||||
|
||||
//#include <osg/MemoryManager>
|
||||
#define osgNew new
|
||||
#define osgDelete delete
|
||||
#define osgFree free
|
||||
#define osgMalloc malloc
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
@@ -209,7 +209,7 @@ class RegisterDotOsgWrapperProxy
|
||||
{
|
||||
if (Registry::instance())
|
||||
{
|
||||
_wrapper = osgNew DotOsgWrapper(proto,name,associates,readFunc,writeFunc,readWriteMode);
|
||||
_wrapper = new DotOsgWrapper(proto,name,associates,readFunc,writeFunc,readWriteMode);
|
||||
Registry::instance()->addDotOsgWrapper(_wrapper.get());
|
||||
}
|
||||
}
|
||||
@@ -235,7 +235,7 @@ class RegisterReaderWriterProxy
|
||||
{
|
||||
if (Registry::instance())
|
||||
{
|
||||
_rw = osgNew T;
|
||||
_rw = new T;
|
||||
Registry::instance()->addReaderWriter(_rw.get());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user